/** * Display a listing of the resource. * * @return Response */ public function index() { $latestmovies = LatestMovies::latest('release_date')->paginate(8); return view('backend.latest_movies.latest_movies_list')->with('latestmovies', $latestmovies); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $latestmovies = LatestMovies::latest('release_date')->simplePaginate(8); return view('frontend.home')->with('latestmovies', $latestmovies); }