/** * Display a listing of the resource. * * @return Response */ public function index() { $this->html->showFullDescription = true; $this->html->courses = \Pinom\Models\Courses::paginate(5); if (!isset($this->html->courses)) { return Redirect::to('/'); } return view($this->html->config->theme_folder . '.courses-index')->with('html', $this->html); }