/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Artwork::destroy($id); \Notification::success("Kunstwerk gelöscht."); return back(); }
public function destroy($id) { if (Auth::check() && Auth::user()->hasOnePrivelege(['Moderator', 'Administrator'])) { Artwork::destroy($id); return Redirect()->action('ArtworkController@showArchived'); } else { return View::make('errors/' . HttpCode::NotFound); } }