aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/LoginController.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-12-06 23:54:38 +0100
committerMateja <mail@matejamaric.com>2020-12-06 23:54:38 +0100
commitbee1e3a09a7c3de5e9ad0e1dbf593aa643acfc85 (patch)
tree357326073ac5a9b8bb86526037753eb78c49a4b6 /app/Http/Controllers/LoginController.php
parent36945006257bc3ad65bd564ea6c40b40c0d0002a (diff)
downloadyota-laravel-bee1e3a09a7c3de5e9ad0e1dbf593aa643acfc85.tar.gz
yota-laravel-bee1e3a09a7c3de5e9ad0e1dbf593aa643acfc85.zip
Small improvements.v1.0.3
Diffstat (limited to 'app/Http/Controllers/LoginController.php')
-rw-r--r--app/Http/Controllers/LoginController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php
index 02779bf..be1de1d 100644
--- a/app/Http/Controllers/LoginController.php
+++ b/app/Http/Controllers/LoginController.php
@@ -44,7 +44,7 @@ class LoginController extends Controller
//return redirect('login')->with('status', 'Submitted.');
//return Redirect::back()->with('status', 'Submitted.');
if (Auth::attempt($request->only('email', 'password')))
- return redirect()->intended(route('home'));
+ return redirect()->intended(route('reservations'));
else return Redirect::back()
->withErrors(['failed' => ['Bad credentials!']]);
}