Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create migration, controller, model and seeder laravel

php artisan make:model MODEL_PATHMODEL_NAME -mcrs
or
php artisan make:model MODEL_PATHMODEL_NAME -a
  
-a, --all Generate a migration, factory, and resource controller for the model 
-m, --migration Create a new migration file for the model.
-c, --controller Create a new controller for the model.
-r, --resource Indicates if the generated controller should be a resource controller
-s, --seeder Create a new seeder file for the model.
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #create #model #seeder #laravel
ADD COMMENT
Topic
Name
9+4 =