/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { if (Gate::denies('admin')) { abort(403); } LinkRelease::where('link_id', $id)->delete(); LinkTrack::where('link_id', $id)->delete(); ArtistLink::where('link_id', $id)->delete(); Link::destroy($id); return redirect()->route('link.index')->with('alert-success', [trans('htmusic.deleted')]); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Link::destroy($id); return redirect(action('Goenitz\\LinkController@index')); }
/** * Remove the specified resource from storage. * * @Delete("/{id}") * @param int $id * @return Response */ public function destroy($id) { Link::destroy($id); }