original_string: public static function check($permission)
      {
          if (static::isAdministrator()) {
              return true;
          }
  
          if (is_array($permission)) {
              collect($permission)->each(function ($permission) {
                  call_user_func([Permission::class, 'check'], $permission);
              });
  
              return;
          }
  
          if (Auth::guard('merchant')->user()->cannot($permission)) {
              static::error();
          }
      }
code: public static function check($permission)
      {
          if (static::isAdministrator()) {
              return true;
          }
  
          if (is_array($permission)) {
              collect($permission)->each(function ($permission) {
                  call_user_func([Permission::class, 'check'], $permission);
              });
  
              return;
          }
  
          if (Auth::guard('merchant')->user()->cannot($permission)) {
              static::error();
          }
      }
code_tokens: public static function check ( $ permission ) { if ( static :: isAdministrator ( ) ) { return true ; } if ( is_array ( $ permission ) ) { collect ( $ permission ) -> each ( function ( $ permission ) { call_user_func ( [ Permission :: class , 'check' ] , $ permission ) ; } ) ; return ; } if ( Auth :: guard ( 'merchant' ) -> user ( ) -> cannot ( $ permission ) ) { static :: error ( ) ; } }
docstring: Check permission.
  
  @param $permission
  
  @return true
docstring_tokens: Check permission .