laravel make migration and model code example

Example 1: laravel make model with migration and controller

php artisan make:model Todo -mcr

Example 2: laravel make model and migration

php artisan make:model Settings -m

Example 3: artisan make model with migration

php artisan make:model Model_Name -m

Example 4: create laravel migration

php artisan make:migration create_users_table

Example 5: artisan refresh

Try this command it works for me

php artisan migrate:fresh
However, be careful! This command will drop all data from your DB:

Example 6: laravel migration

php artisan migrate