Skip to content

Instantly share code, notes, and snippets.

@Sean-Spallen
Last active May 10, 2019 08:45
Show Gist options
  • Save Sean-Spallen/c7d4bcbdf73c2476e33d469470792d77 to your computer and use it in GitHub Desktop.
Save Sean-Spallen/c7d4bcbdf73c2476e33d469470792d77 to your computer and use it in GitHub Desktop.
Laravel - Update Function
$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