public function create($id) { $movie = DB::table('dvds')->select('title', 'dvds.id', 'rating_name', 'genre_name', 'label_name', 'sound_name', 'format_name')->join('ratings', 'dvds.rating_id', '=', 'ratings.id')->join('genres', 'dvds.genre_id', '=', 'genres.id')->join('labels', 'dvds.label_id', '=', 'labels.id')->join('sounds', 'dvds.sound_id', '=', 'sounds.id')->join('formats', 'dvds.format_id', '=', 'formats.id')->where('dvds.id', $id); $movie = $movie->first(); return view('reviews', ['movie' => $movie, 'reviews' => Review::all($id)]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $review = \App\Models\Review::all(); return view('review', ['review' => $review, "title" => "Our Reviews"]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Review::all(); }