Last active
May 10, 2019 08:45
-
-
Save Sean-Spallen/c7d4bcbdf73c2476e33d469470792d77 to your computer and use it in GitHub Desktop.
Laravel - Update Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$flight = App\Flight::find(1); | |
$flight->name = 'New Flight Name'; | |
$flight->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment