Laravel set meta description to a specific page

Hi all, not sure about the section but i have a problem with this php, i need to change meta description only on my page /my-page, then my first try was this:

->content(function (Document $document) {
            $document->head[] = '<meta name="Description" CONTENT="TRANSLATION HERE">';}),

but obviously this add a new meta description to all pages…how can i add this only to a specific route? (/my-page)?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.