laravel artisan make model with migration code example
Example 1: laravel make model with migration 5.8
php artisan make:model Settings --migration
Example 2: artisan make migration with model
php artisan make:Model Status -m
Example 3: php artisan make :migration with model
php artisan make:model ModelName -a
Example 4: laravel find query
$model = App\Models\Flight::where('legs', '>', 100)
->firstOr(['id', 'legs'], function () {
// ...
});