protected function getImageUrlOrDefault()
    {
        $imagePath = $this->entity->path;

        if (!Storage::exists($imagePath)) {
            $imagePath = $this->imgNotFound();
        }

        return Storage::url($imagePath);
    }
protected function getImageUrlOrDefault()
    {
        $imagePath = $this->entity->path;

        if (!Storage::exists($imagePath)) {
            $imagePath = $this->imgNotFound();
        }

        return Storage::url($imagePath);
    }
protected function getImageUrlOrDefault ( ) { $ imagePath = $ this -> entity -> path ; if ( ! Storage :: exists ( $ imagePath ) ) { $ imagePath = $ this -> imgNotFound ( ) ; } return Storage :: url ( $ imagePath ) ; }
Get the path of the image or the path to the default image.

@return string path
Get the path of the image or the path to the default image .