2 weeks ago

What is the good practice of using route?

Posted 2 weeks ago by webfuelcode

I am working on a simple project to learn laravel. Currently, I am facing a 404 error in some ways, like edit, delete and showing category posts.

Some of these are good when I use route individually.

My question is why do we use Route::resource('categories', 'CategoryController'); and why single like this Route::get('categories', '[email protected]');

I mean when to use resource and when get, post and ...

Please sign in or create an account to participate in this conversation.