/** * Display a listing of the resource. * * @return Response */ public function index() { //Loading courses $this->html->courses = \Pinom\Models\Courses::where('visible', '=', 1)->orderBy('sortorder', 'ASC')->get(); return view($this->html->config->theme_folder . '.index')->with('html', $this->html); }