laravel composer update 1

laravel composer update

$flight = App\Models\Flight::find(1);

$flight->name = 'New Flight Name';


Here is what the above code is Doing:
1. We retrieve the flight record from the database with an ID of 1.
2. We change the name of the flight to “New Flight Name”.
3. We save the flight back to the database.

Similar Posts