get(); } public function getUserType() { return User::where('user_type')->get(); } public function roles() { return $this->hasMany('App\UserRole'); } }