mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-04 14:57:18 +08:00
20 lines
427 B
PHP
20 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Filament\Http\Middleware\Authenticate;
|
|
|
|
class Filament extends Authenticate
|
|
{
|
|
/**
|
|
* 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): string
|
|
{
|
|
return getSchemeAndHttpHost() . '/login.php';
|
|
}
|
|
}
|