DummyAdminController.php 559 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Tests\Controllers;
  3. use App\Http\Controllers\Controller;
  4. use App\Utils\PermissionChecker;
  5. class DummyAdminController extends Controller
  6. {
  7. public function index()
  8. {
  9. return $this->ok();
  10. }
  11. public function store()
  12. {
  13. return $this->created();
  14. }
  15. public function check()
  16. {
  17. PermissionChecker::check('check');
  18. return $this->ok();
  19. }
  20. public function withArgs()
  21. {
  22. return $this->ok();
  23. }
  24. public function passThrough()
  25. {
  26. return $this->ok();
  27. }
  28. }