fresh laravel
snippet in php

fresh laravel

user6442

$flight = Flight::where('number', 'FR 900')->first();

$flight->number = 'FR 456';

$flight->refresh();

$flight->number; // "FR 900"

laravel force delete

user3211

Product::find($id)->forceDelete();

php artisan make model

user5675

php artisan make:model Flight