mercredi 7 novembre 2018

Laravel Method [index@index] does not exist

I had Laravel 4.2 application and updating it to Laravel 5.4. for this i have installed fresh Laravel 5.4 and migrated routes,controllers views etc.

I want to protect all pages after /warehouse e.g /warehouse/dashboard,/warehouse/accounts and so on except /warehouse/login page. I have searched and used this route but its not working properly.

Can any one let me know whats the proper way of authentication.

Route::group(['middleware' => ['auth']], function() {
         // uses 'auth' middleware
         Route::resource('/warehouse','WarehouseController@index');
    });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire