Skip to content

Instantly share code, notes, and snippets.

@jeffandersen jeffandersen/delete task Secret
Created Dec 13, 2018

Embed
What would you like to do?
// ...
// Show Tasks & Add New Task
// ...
// Delete Task
Route::delete('/task/{task}', function (Task $task) {
$task->delete();
return redirect('/');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.