Restful controller and resource
Hi,
i'm trying to use resource in Laravel 5, i have a list of pages in my menu, i want to use resource controller to view the pages by using only one template and not one for page.
so i tap in my terminal: php artisan make:controller PagesController -r in my routes/web.php i have write this: Route::resource('backend/pages','PagesController');
in the index method of the controller i have write this: return view('backend.dashboard');
i have also tried: Route::resource('/backend/pages','PagesController@index');
but when i refresh the page, i have a 404 page not found (that i had created)
Can you explain me how i can use this type of controller please?
Please or to participate in this conversation.