src/Mediable.php
protected function rehydrateMediaIfNecessary($tags = null)
    {
        if ($this->rehydratesMedia() && $this->mediaIsDirty($tags)) {
            $this->loadMedia();
        }
    }
protected function rehydrateMediaIfNecessary($tags = null)
    {
        if ($this->rehydratesMedia() && $this->mediaIsDirty($tags)) {
            $this->loadMedia();
        }
    }
protected function rehydrateMediaIfNecessary ( $ tags = null ) { if ( $ this -> rehydratesMedia ( ) && $ this -> mediaIsDirty ( $ tags ) ) { $ this -> loadMedia ( ) ; } }
Reloads media relationship if allowed and necessary.
@param  null|string|string[] $tags
@return void
Reloads media relationship if allowed and necessary .