original_string: protected function whenPivotLoaded($table, $value, $default = null)
      {
          if (func_num_args() === 2)
              $default = new MissingValue;
  
          return $this->when(
              $this->pivot && ($this->pivot instanceof $table || $this->pivot->getTable() === $table),
              ...[$value, $default]
          );
      }
code: protected function whenPivotLoaded($table, $value, $default = null)
      {
          if (func_num_args() === 2)
              $default = new MissingValue;
  
          return $this->when(
              $this->pivot && ($this->pivot instanceof $table || $this->pivot->getTable() === $table),
              ...[$value, $default]
          );
      }
code_tokens: protected function whenPivotLoaded ( $ table , $ value , $ default = null ) { if ( func_num_args ( ) === 2 ) $ default = new MissingValue ; return $ this -> when ( $ this -> pivot && ( $ this -> pivot instanceof $ table || $ this -> pivot -> getTable ( ) === $ table ) , ... [ $ value , $ default ] ) ; }
docstring: Execute a callback if the given pivot table has been loaded.
  
  @param  string  $table
  @param  mixed   $value
  @param  mixed   $default
  
  @return \Illuminate\Http\Resources\MissingValue|mixed
docstring_tokens: Execute a callback if the given pivot table has been loaded .