Fixed redirect problem when loggin in via /.

This commit is contained in:
Lukas Halbritter
2019-02-06 15:47:16 +01:00
parent c0b5f36f9b
commit 8d92cbd697
+2 -2
View File
@@ -11,7 +11,7 @@
|
*/
Route::redirect('/', '/home');
Route::redirect('/', '/bookings');
Route::middleware(['auth'])->group(function() {
/**************************************************************************
@@ -31,7 +31,7 @@ Route::middleware(['auth'])->group(function() {
/**************************************************************************
* BOOKINGS *
**************************************************************************/
Route::get('/bookings', function() { return redirect('bookings/year-' . date('Y')); });
Route::redirect('/bookings', 'bookings/year-' . date('Y'));
Route::get('/bookings/year-{year}', 'BookingsController@index');
Route::post('/bookings', 'BookingsController@store');