From 2cd1589d6ae7095770e8c5dda10b138861d70501 Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 23 Feb 2020 23:11:03 +0100 Subject: Initial commit. Calendar is working. --- app/Http/Middleware/RedirectIfAuthenticated.php | 27 +++++++++++++++++++++++++ 1 file changed, 27 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..2395ddc --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,27 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + + return $next($request); + } +} -- cgit v1.2.3