Laravel Modules , create model,migration and controller in single command(artisan)

1.6k Views Asked by At

I'm working on a modules Laravel project, and I wonder if it is possible to create model, migration and controller in single command (artisan).

I'm already aware of this command:

php artisan make:model Todo -mcr

This only works in a default Laravel project not a modular one.

I also read all the commands in modular artisan commands docs, but there is no mention of this issue.

1

There are 1 best solutions below

0
On

Following the official documentation :

use App\Http\Controllers\ArticleController;
 
Route::resource('articles', ArticleController::class);