public function buildDownload($id_post) { //$data = DownloadPost::where('id_post','=',$id_post); $data = AnimePost::where('id', '=', $id_post)->first(); return view('Admin\\Episode\\addDownload')->with('data_anime', $data); }
public function destroyEpisode() { $id = Input::get('id'); AnimePost::destroy($id); return redirect()->route('afterDelete'); }