Beispiel #1
0
 /**
  * Create a new user controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->priviledge_user();
     $this->_user = \Auth::user();
     if (2 == $this->_user->role_id) {
         $this->_query_connect = "=";
         $this->_query_value = $this->_user->department_id;
     }
     $this->_plan_courses = Course::where('department_id', $this->_query_connect, $this->_query_value)->lists('name', 'id');
     $this->_plan_curriculums = Curriculum::lists('name', 'id');
 }