artesaos / seotools

SEO Tools for Laravel
MIT License
3.12k stars 505 forks source link

Set the title dynamically #278

Closed MahbodHastam closed 2 years ago

MahbodHastam commented 2 years ago

How do I set the website title dynamically from the database or another config file? SeoTools::setTitle() only changes the page title

J-Brk commented 2 years ago

By integrating SeoTools::setTitle() into your application and using the generator in the blade as explained in the documentation. Closing this issue since it's not an issue with this package.

Rattone commented 1 year ago

I'm reopening this issue because I believe that the problem is in changing the "title" (e.g. site name) positioned after the separator. To change it dynamically set the "seotools.meta.defaults.title" config like this: config(['seotools.meta.defaults.title' => $siteName])