artesaos / seotools

SEO Tools for Laravel
MIT License
3.04k stars 503 forks source link

Default Title Its OVer 9000 #161

Closed ikramulmustafa closed 4 years ago

ikramulmustafa commented 4 years ago

Default Title Its OVer 9000 is not removing I have set false in config/seotools.php but still in title its appearing http://www.mavenup.com/

klimov-paul commented 4 years ago

Unable to reproduce. Following unit test verifies correct behavior:

public function test_161()
    {
        $seoMeta = new SEOMeta(new Repository(['defaults' => ['title' => 'test-title']]));
        $html = $seoMeta->generate();

        $this->assertSame('<title>test-title</title>', $html);

        $seoMeta = new SEOMeta(new Repository(['defaults' => ['title' => false]]));
        $html = $seoMeta->generate();

        $this->assertSame('', $html);
    }

Make sure you have reset Laravel config cache after updating 'config/seotools.php':

php artisan config:clear
haleyngonadi commented 4 years ago

php artisan config:clear solved this for me. Thanks!

PortgasDFer commented 3 years ago

No sirve.

jtirado1996 commented 1 year ago

Same error in Laravel 9

You can avoid that with this

SEOMeta::setTitle('Home', 'aaa');