This commit is contained in:
Adrian Hopek
2022-01-12 15:28:48 +01:00
parent 2abd83526d
commit 197e7da9cc
22 changed files with 994 additions and 1895 deletions

View File

@@ -8,7 +8,6 @@ use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Symfony\Component\HttpFoundation\Response;
use Toby\Providers\RouteServiceProvider;
class RedirectIfAuthenticated
{
@@ -18,7 +17,7 @@ class RedirectIfAuthenticated
foreach ($guards as $guard) {
if (Auth::guard($guard)->check()) {
return redirect(RouteServiceProvider::HOME);
return redirect()->route("login");
}
}