Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created August 10, 2021 08:45
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/b0746593f41c2d4348cca99c642a36f1 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/b0746593f41c2d4348cca99c642a36f1 to your computer and use it in GitHub Desktop.
<?php
Route::get("/project/{project}", function (Project $project) {
return tap($project, function (Project $projectToUpdate) {
$projectToUpdate->update([
"name" => "proyecto actualizado"
]);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment