Mar.06

Laravel commad used to create Model,Controller and Migration file at once

We can create Model, Controller and Migration file at a time by this command.

 

php artisan make:model Test -crm or
php artisan make:model --migration --controller --resource Test

if we need the Model class  inside the <Model folder> we need slide change on command.

php artisan make:model --migration --controller --resource Model/Test
Share this Story:
  • facebook
  • twitter
  • gplus

Leave a comment

Facebook Comment