public function index() { $subjects = Subject::all(); $types = Type::lists('name', 'id'); return \View::make('admin::subject.index')->with(array('subjects' => $subjects, 'types' => $types)); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $subjects = Subject::all(); return \View::make('admin::settings')->with(array('subjects' => $subjects)); }