/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Flyer::delete($id); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function delete() { dd(Flyer::all()); Flyer::delete([$this->path, $this->thumbnail_path]); parent::delete(); }