Hi Folks , In this blog i will show you how to create a model in laravel using artisan command. Navigate to your project folder and open the cmd or git-sch and run the command
php artisan make:UserModel
The following details show the most used/basic options for all commands above separately:
-a or — all Generate a migration, seeder, factory, and resource controller for the model
-c or — controller Create a new controller for the model
— force Create the class even if the model already exists
-m or — migration Create a new migration file for the model