Currently, there aren't that many SEO packages for Laravel and the available ones are quite complex to set up and very decoupled from the database. They only provided you with helpers to generate the tags, but you still had to use those helpers: nothing was generated automatically and they almost do not work out of the box. Laravel Seo package generates valid and useful meta tags straight out of the box, with limited initial configuration, whilst still providing a simple, but powerful API to work with.

This will allow you to dynamically fetch SEO data from your model and this package will generate as many tags as possible for you, based on that data.

You'll be able to retrieve the SEO model via the Eloquent SEO relationship: $post = Post::find(1); $seo = $post->SEO; On the SEO model, you may update the following properties: title description author image $post = Post::find(1); $post->seo->update([ 'title' => 'My title for the SEO tag', 'image' => 'images/posts/1.jpg', // Will point to `public_path('images/posts/1.jpg')` ]); However, it can be a bit cumbersome to manually update the SEO model every time you make a change.
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.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners