示例#1
0
 /**
  * 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));
 }
示例#2
0
 public function index(\App\Repositories\DVDRepository $dvds)
 {
     return $dvds->eagerLoadAllDvds();
 }
示例#3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(DVDRepository $dvds)
 {
     return view('DVD.listing')->with('dvds', $dvds->paginateDvds());
 }