blessing-skin-server/app/Http/Middleware/RedirectIfAuthenticated.php
2019-09-03 18:44:21 +08:00

14 lines
216 B
PHP

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