Laravel Open Graph Images is a fantastic package that enables you to dynamically create Open Graph images for your website. The package will then generate the image and add it to the page.

You can install the package via composer: composer require vormkracht10/laravel-open-graph-image

If you don't want to use the blade component you can also use the facade or helper method to generate the URL to the image. // Facade use Vormkracht10\LaravelOpenGraphImage\Facades\OpenGraphImage; OpenGraphImage::url(['title' => 'Vormkracht10', 'subtitle' => 'Slimme websites']); // Helper og(['title' => 'Vormkracht10', 'subtitle' => 'Slimme websites']); When you share the page on any platform, the image will automatically be generated, cached and then shown in your post.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners