Update/fix redirects to named routes (from ae81ee1de40935a2951ed9aea980621e1950f85c)
MODIFY
app/Http/Controllers/EarningsController.php
app/Http/Controllers/EarningsController.php
@@ -27,6 +27,6 @@ class EarningsController extends Controller {
$earning->save();
- return redirect()->route('dashboard.index');
+ return redirect()->route('dashboard');
}
}

MODIFY
app/Http/Controllers/LoginController.php
app/Http/Controllers/LoginController.php
@@ -23,10 +23,10 @@ class LoginController extends Controller {
'email' => $email,
'password' => $password
])) {
- return redirect()->route('dashboard.index');
+ return redirect()->route('dashboard');
} else {
return redirect()
- ->route('login.index')
+ ->route('login')
->withErrors([
'credentials' => 'There\'s no user with that email address/password'
]);

MODIFY
app/Http/Controllers/LogoutController.php
app/Http/Controllers/LogoutController.php
@@ -9,6 +9,6 @@ class LogoutController extends Controller {
public function index() {
Auth::logout();
- return redirect()->route('login.index');
+ return redirect()->route('login');
}
}

MODIFY
app/Http/Controllers/SettingsController.php
app/Http/Controllers/SettingsController.php
@@ -18,6 +18,6 @@ class SettingsController extends Controller {
$user->save();
- return redirect()->route('settings.index');
+ return redirect()->route('settings');
}
}

MODIFY
app/Http/Controllers/SpendingsController.php
app/Http/Controllers/SpendingsController.php
@@ -32,6 +32,6 @@ class SpendingsController extends Controller {
$spending->save();
- return redirect()->route('dashboard.index');
+ return redirect()->route('dashboard');
}
}

Update/fix redirects to named routes (from ae81ee1de40935a2951ed9aea980621e1950f85c)