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
post and ...