I saw Laravel 5.2 changing usage routes.php.
In fact, the old one:
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
now do not work.
Instead, I saw that it is better to use:
Route::Auth();
But this method does not provide a password and registers the route as it is used to ...
In fact, I am using the solution I saw in Stack Overflow using the get and post method:
Route::get('login', 'Auth\AuthController@showLoginForm');
[...]
Route::get('register', 'Auth\AuthController@showRegistrationForm');
[...]
Route::get('password/reset/{token?}','Auth\PasswordController@showResetForm');
[...]
This is pretty awful, so is it better to use the 5.2 route.php file for this new version of Laravel?
Thank you for your help!
source
share