/** * Display a listing of the resource. * * @return Response */ public function index() { //Get all subjects $subjects = SubjectModel::all(); return view(' admin.subjects.index ', compact('subjects')); }
public function index() { $subjects = SubjectModel::all(); return view('student.home', compact('subjects')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { // $subjects = SubjectModel::all(); return view('admin.programs.create', compact('subjects')); }