DEV Community

Cover image for Use Migration, Factory , Seeder In Laravel 10
Hòa Nguyễn Coder
Hòa Nguyễn Coder

Posted on

4 1 1 1 1

Use Migration, Factory , Seeder In Laravel 10

The first. we can note 1 list command Migration in Laravel
php artisan make:migration create_products_table
//or
php artisan make:migration table_products_table --table= products
//or
php artisan make:migration create_products_table --create=products
Note
--table= products : open products table modify
--create=products : create product table
OR : The Artisan command to create a migration (-m), a seeder (-s), and a factory (-f) in Laravel is:
php artisan make:model Product -m -s -f
ModelName is the name of the model you want to create.
This command will generate a migration, a seeder, and a factory for the specified model as well as create the model itself.

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay