Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pshitote's avatar

How to use Schema.org Spatie/Schema-org package

Hi guys! I would like to include structured data in my laravel application for SEO purposes. I was directed to use Spatie/Schema-org package, but I don't know how to use it. In other words, where do I write the code and reflect the json-ld script in my view? Any guidance would be useful, even if it means using a different package or method to include structured data in my page that retrieves posts from database.

0 likes
4 replies
pshitote's avatar

@tisuchi yes I have. I am requesting for help because I am new to Laravel and I don't know exactly how to use spatie/schema-org. I have already installed it using composer, but what next?

3 likes
pshitote's avatar

@tisuchi I am really grateful for such an insightful procedure. That is all I wanted. You have indeed helped me solve my problem.

4 likes

Please or to participate in this conversation.