From a464ef4c0e3ce235fb1da70dfb282449beeeac80 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 13 Jun 2023 21:59:16 +0100 Subject: Initialize laravel app --- app/Http/Middleware/RedirectIfAuthenticated.php | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/Http/Middleware/RedirectIfAuthenticated.php (limited to 'app/Http/Middleware/RedirectIfAuthenticated.php') diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..afc78c4 --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,30 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} -- cgit v1.2.3-54-g00ecf