public function restoreModel($value)
    {
        return $this->getQueryForModelRestoration(
            (new $value->class)->setConnection($value->connection), $value->id
        )->useWritePdo()->firstOrFail()->load($value->relations ?? []);
    }
public function restoreModel($value)
    {
        return $this->getQueryForModelRestoration(
            (new $value->class)->setConnection($value->connection), $value->id
        )->useWritePdo()->firstOrFail()->load($value->relations ?? []);
    }
public function restoreModel ( $ value ) { return $ this -> getQueryForModelRestoration ( ( new $ value -> class ) -> setConnection ( $ value -> connection ) , $ value -> id ) -> useWritePdo ( ) -> firstOrFail ( ) -> load ( $ value -> relations ?? [ ] ) ; }
Restore the model from the model identifier instance.

@param  \Illuminate\Contracts\Database\ModelIdentifier  $value
@return \Illuminate\Database\Eloquent\Model
Restore the model from the model identifier instance .