Friday, June 28, 2024
No menu items!
Google search engine
HomeLaravelHow to create a Model in laravel with artisan command?

How to create a Model in laravel with artisan command?

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

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments