Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created August 10, 2021 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/29e33805a2130f5745e6e84e97d263b9 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/29e33805a2130f5745e6e84e97d263b9 to your computer and use it in GitHub Desktop.
<?php
Route::get("/projects/{project}", function (Project $project) {
return tap($project)->update([
"name" => "proyecto actualizado"
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment