original_string: public function restoreModel($value)
      {
          return $this->getQueryForModelRestoration(
              (new $value->class)->setConnection($value->connection), $value->id
          )->useWritePdo()->firstOrFail()->load($value->relations ?? []);
      }
code: public function restoreModel($value)
      {
          return $this->getQueryForModelRestoration(
              (new $value->class)->setConnection($value->connection), $value->id
          )->useWritePdo()->firstOrFail()->load($value->relations ?? []);
      }
code_tokens: public function restoreModel ( $ value ) { return $ this -> getQueryForModelRestoration ( ( new $ value -> class ) -> setConnection ( $ value -> connection ) , $ value -> id ) -> useWritePdo ( ) -> firstOrFail ( ) -> load ( $ value -> relations ?? [ ] ) ; }
docstring: Restore the model from the model identifier instance.
  
  @param  \Illuminate\Contracts\Database\ModelIdentifier  $value
  @return \Illuminate\Database\Eloquent\Model
docstring_tokens: Restore the model from the model identifier instance .