Пример #1
0
 public function __toString()
 {
     $user = site()->user();
     if ($user->hasRole('admin')) {
         return parent::__toString();
     }
     return "";
 }