mardi 22 novembre 2016

Laravel: Creating route resource for sub directory

I am new to laravel and creating a spare parts maintenance app. I created a route resource for spare parts using :

Route::resource('/parts' , 'SparePartsController');

This works fine. Later I wanted to also create another route resource for spare parts categories. So I created the controller and used:

Route::resource('/parts/categories' , 'SpCategoriesController');

But this second resource wont work. When i go to http://ift.tt/2fmwgct , I get a blank page. Any idea whats wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire