लारवेल माइग्रेशन और कंट्रोलर के साथ मॉडल बनाते हैं
php artisan make:model Todo -mcr
लारवेल लाइन पर मॉडल नियंत्रक और माइग्रेशन बनाते हैं
php artisan make:model Todo -a
नियंत्रक लारवेल के साथ मॉडल बनाएं
php artisan make:model Customer
php artisan make:controller CustomersController --resource
माइग्रेशन, कंट्रोलर, मॉडल और सीडर लारवेल बनाएं
php artisan make:model MODEL_PATH\MODEL_NAME -mcrs
or
php artisan make:model MODEL_PATH\MODEL_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.
एकल कमांड लारवेल में मॉडल, नियंत्रक और माइग्रेशन बनाएं
php artisan make:model Products -mcr
-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
newer versions of laravel > 5.6
php artisan make:model Products -a
-a, --all Generate a migration, factory, and resource controller for the model