Creating And Retrieving Open Graph Images
Last updated
public function placeholderOgImage(): Attribute
{
return Attribute::make(
get: fn () => '' // Your fallback image goes here
);
}<meta property="og:image" content="{{ $post->graphify_image }}">
<meta name="twitter:image" content="{{ $post->graphify_image }}">