public function destroy($id) { $post = POST::find($id); $post->delete(); return redirect('/posts')->with('success', 'Post Removed'); }
Pro tip: use ```triple backticks around text``` to write in code fences