Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Authenticate.php 409B

1234567891011121314151617
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Illuminate\Auth\Middleware\Authenticate as Middleware;
  4. use Illuminate\Http\Request;
  5. class Authenticate extends Middleware
  6. {
  7. /**
  8. * Get the path the user should be redirected to when they are not authenticated.
  9. */
  10. protected function redirectTo(Request $request): ?string
  11. {
  12. return $request->expectsJson() ? null : route('login');
  13. }
  14. }