🔧 Indique de meilleurs routes

This commit is contained in:
Clement Desmidt 2017-11-13 11:27:41 +01:00
parent 0b50e75fa2
commit db4705d57c
2 changed files with 5 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class LoginController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = 'deals.list';
/**
* Create a new controller instance.

View File

@ -11,12 +11,13 @@
|
*/
Route::redirect('/', 'home');
Route::get('/', 'HomeController@index');
Auth::routes();
Route::redirect('/', 'deals.list');
Route::get('/', 'HomeController@index')->name('home');
Route::get('/deals/list/{type}', 'HomeController@list')->name('deals.list');
Route::get('/deals/view/{type}/{id}', 'HomeController@view')->name('deals.view');