laravel create model and table code example
Example 1: fresh laravel
$flight = Flight::where('number', 'FR 900')->first();
$flight->number = 'FR 456';
$flight->refresh();
$flight->number; // "FR 900"
Example 2: php artisan make :migration with model
php artisan make:model ModelName -a