public static function remove($note) { Note::destroy($note); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Note::destroy($id); return Response::json(array('success' => true)); }
public function delete($id) { $note = Note::findOrFail($id); Note::destroy($id); return redirect(URL::previous()); }
public function delete($id) { $note = Note::findOrFail($id); if ($this->canUpdate($note)) { Note::destroy($id); } return redirect(URL::previous()); }