I have used the make:auth command to create the authentication system, and it has been working fine
I have created another Restful controller, and I've been using the Route::controller on routes.php
like this code, Please read the // comments in the code
Route::group(['prefix' => 'dashboard', 'middleware' => 'web'], function () {
Route::auth();
Route::get('/', 'HomeController@index'); // working fine and requires logging in
Route::get('test', 'HomeController@index'); // working fine and requires logging in
Route::controller('account','accountController'); // doesn't work and I can visit this page without logging in
});
I see the implicit routes doesn't working fine with middleware, but I don't know the appropriate solution
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire