Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created Aug 10, 2021
Embed
What would you like to do?
<?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