public function index() { $flyers = Flyer::all(); return view('flyers.index', compact('flyers')); }
/** * 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(); }
public function getButton() { $flyers = Flyer::all(); return view('button', compact('flyers')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $flyers = Flyer::all(); return View('flyers.show', array('flyers' => Country::getCountryNames($flyers))); }