Custom Routes
Got some custom routes and don't want to reinvent the SEO implementation? No worries, Advanced SEO got you covered.
Enable Processing
// Works with Statamic routes …
Route::statamic('/login', 'layout', [
'seo_enabled' => true
]);
// … and works with Laravel routes
Route::get('/login', fn () => view('layout', [
'seo_enabled' => true
]));Adding Contextual Data
Route::statamic('/login', 'layout', [
'seo_enabled' => true,
'seo_title' => 'Login',
'seo_description' => 'Welcome back! Login to your account.'
]));Last updated