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.

Answers 1
  • Php artisan Make model command with -a in laravel

    php artisan make:model Todo -a
    
    0

    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