$router->get('/', 'HomeController@index')->name('home');
$router->resource('users', UserController::class); //user auth
This is the command in laravel 7 to generate new controller which articles except for user but I got some issues where the error said the Model does not exist!
php artisan admin:make ArticlesController --model=App\Articles
above the command that I used
If model
Articlesexist, you can useBy default, models are created in the
Appdirectory in Laravel 7.If you use
App\ArticlesLaravel assume your model name asAppArticles.if you need to create in the custom path, then use double
\\like this