Php artisan make model, factory, migration and controller in single command

Updated at 29-Apr-2021, By samar

Php artisan make model, factory, migration and controller in single command

In this session, we will try our hand at solving the "Php artisan make model, factory, migration and controller in single command".

Sometimes you have to create a model with factory, migration, and controller. Lavavel provides a command to create all these for you using a single command with option -a in php artisan make:model command.
  • Php artisan Make model command with -a in laravel

    php artisan make:model Todo -a
    

    This artisan command will generate a model with factory, migration, and controller in Laravel using a single command. You don’t have to create all these one by one. Laravel php artisan make:model command provides option -a like, php artisan make:model Todo -a.

Back to code snippet queries related laravel