Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120836572
Authenticate.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None
Authenticate.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline