/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show(DVDRepository $dvds, $id) { return view('DVD.showDVD')->with('dvd', $dvds->eagerLoadAll($id)); }
public function index(\App\Repositories\DVDRepository $dvds) { return $dvds->eagerLoadAllDvds(); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(DVDRepository $dvds) { return view('DVD.listing')->with('dvds', $dvds->paginateDvds()); }