예제 #1
0
 /**
  * @return string
  */
 public function role()
 {
     return $this->entity->role && ($title = User::roleTitles($this->entity->role)) ? "<code>{$title}</code>" : '<span class="text-gray">' . trans('user::user.no_role') . '</span>';
 }