laravel-Meta icon indicating copy to clipboard operation
laravel-Meta copied to clipboard

No way to remove images?

Open theianjohnson opened this issue 7 years ago • 3 comments

Here's my use case -

LinkedIn only seems to grab the first og:image I set a default "catch all" image in Controller.php I set more specific images in controllers that extend Controller.php I output images with {!! Meta::tag('image') !!}

Is there any way to -

Unset a previously set image? Or override an image? Or reverse the order of the images?

theianjohnson avatar Apr 10 '17 18:04 theianjohnson

Avoid to set a default image into constructor.

As example show:

    <head>
        ...

        {{-- Print custom section images and a default image if not set --}}
        {!! Meta::tag('image', asset('images/default-logo.png')) !!}
    </head>

eusonlito avatar Apr 10 '17 19:04 eusonlito

That does work, but being able to set a default image then override it seems like a pretty common use case

No worries if it's not something you're looking to add, I'll take a look around and see if any other Laravel libraries implement it like this, cheers!

theianjohnson avatar Apr 10 '17 20:04 theianjohnson

Please, upgrade to last release v3.1.1 :)

eusonlito avatar Apr 10 '17 20:04 eusonlito