Files
Fleetbase-Mirror-Repo/api/app/Http/Middleware/Authenticate.php
Ronald A. Richardson bc854c5d6c mergeable
2023-07-23 18:01:31 +08:00

20 lines
437 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
*/
protected function redirectTo($request)
{
return response()->error('Unauthenticated.');
}
}