TDoG-Skin/app/Http/Middleware/RedirectIfAuthenticated.php
2024-08-17 19:13:54 +08:00

14 lines
216 B
PHP
Executable File

<?php
namespace App\Http\Middleware;
use Auth;
class RedirectIfAuthenticated
{
public function handle($request, \Closure $next)
{
return Auth::check() ? redirect('user') : $next($request);
}
}