This repository has been archived on 2025-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
Files
lean_in_world/app/Http/Middleware/Authenticate.php
meghamalore eed0ce11d2 first commit
2024-07-04 16:57:26 +05:30

19 lines
458 B
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.
*/
protected function redirectTo(Request $request): ?string
{
// dd($request->expectsJson());
// return $request->expectsJson() ? null : route('admin_login');
}
}