Generate OG Images in Your Laravel App

Add dynamic social card images to every Laravel route. Works with Blade, Inertia, and Livewire.

Get Started

Laravel Native

Pure PHP implementation with no external dependencies or framework-specific quirks.

Blade Ready

Pass ogUrl to your Blade templates with compact() or with() for clean integration.

Config Driven

Use Laravel's config system to store your Imago API key securely.

Example Integration

<?php
// app/Http/Controllers/PostController.php

public function show(Post $post)
{
    $ogUrl = 'https://imagoapi.com/api/og/generate?' . http_build_query([
        'title'    => $post->title,
        'template' => 'modern',
        'api_key'  => config('services.imago.key'),
    ]);

    return view('posts.show', compact('post', 'ogUrl'));
}
<!-- resources/views/posts/show.blade.php -->
<meta property="og:image" content="{{ $ogUrl }}">
<meta name="twitter:image" content="{{ $ogUrl }}">

Generate Perfect OG Images Today

Join thousands of developers using Imago API for dynamic social cards.

Start Free Trial