Friday, March 17, 2017

Class Router does not exist

I'm trying to create a simple CRUD in Laravel. I have a table template in DB, and Template controller class.

Why do i get a error

Class \Project\Router does not exist

When i put any of the strings

Route::resource('template', 'TemplateController');
Route::post ...

in the \Project\routes.php?

i don't have the error if routes.php contains only

Route::get ...



via Mira

Advertisement