Getting started

Install by artisan package

Go to You /core/ folder

cd core

Run php artisan commands

php artisan package:installrequire seiger/sseo "*"
php artisan vendor:publish --provider="Seiger\sSeo\sSeoServiceProvider"

Configure layout via Blade

Check if the OnHeadWebDocumentRender event is registered in the <head></head> section of your Blade layout.

<!DOCTYPE html>
<html lang="{{evo()->getConfig('lang', 'en')}}">
<head>
    <base href="{{evo()->getConfig('site_url', '/')}}"/>
    @if(is_array($evtHead = evo()->invokeEvent('OnHeadWebDocumentRender')))
        {!!implode('', $evtHead)!!}
    @endif
    ...
</head>

Configure sitemap template

Configure the output template for sitemap.xml by path assets/plugins/sseo/sitemapTemplate.blade.php