model with table created with controller in laravel command code example
Example 1: laravel one command for model table and controller
php artisan make:model --migration --controller test
Example 2: laravel one command for model table and controller
php artisan make:model --migration --controller test --resource