Deletes the specified post
public function destroy($id)
{
    $post = POST::find($id);
    $post->delete();    
    return redirect('/posts')->with('success', 'Post Removed');
}
by Valeri Tandilashvili
4 years ago
Laravel
model methods
Laravel From Scratch
0
Pro tip: use ```triple backticks around text``` to write in code fences