/** * Display a listing of the resource. * * @return Response */ public function index() { $departments = Departments::getAllDepartment(); $speciality = Speciality::getAllSpeciality(); return view('admin.subject.index', compact('departments', 'speciality')); }