Ad

Laravel How To Choose Between Multiple Images As Og:image

- 1 answer

I'm building a laravel-application and I want to add some facebook-opengraph-meta stuff. For example in wordpress you can use the yoast-plugin so when you share a page or an article you can choose which image you want to set as the og:image. How is this possible in laravel?

Right now, I just have the plain

<meta property="og:image" content="{{ path/to/some/image/ }} ">

Can someone help me out?

Ad

Answer

if you have an array of images , $images[$data->iamge_position] .. store the image position while storing image in database.

Ad
source: stackoverflow.com
Ad