예제 #1
0
파일: Departments.php 프로젝트: RMMusic/CSE
 public static function getAllDepartment()
 {
     $departments = Departments::select()->where('USE', '=', 1)->get();
     foreach ($departments as $department) {
         $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT);
     }
     return $departments;
 }
예제 #2
0
파일: Departments.php 프로젝트: TDMU/CSE
 public static function getAllDepartment()
 {
     $departments = Departments::all();
     foreach ($departments as $department) {
         $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT);
     }
     return $departments;
 }
예제 #3
0
 /**
  * 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'));
 }