Page MenuHomePhorge

Authenticate.php
No OneTemporary

Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None

Authenticate.php

<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
use Illuminate\Http\Request;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param Request $request
*/
protected function redirectTo($request): ?string
{
// We might want to redirect the user to the login route,
// however, I think we should not, as we're using API routes only.
// Unauthenticated state response is handled in app/Exceptions/Handler.php
// if (! $request->expectsJson()) {
// return route('login');
// }
return null;
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:32 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18844948
Default Alt Text
Authenticate.php (717 B)

Event Timeline