Custom Routes
Add SEO support to custom Statamic or Laravel routes without reinventing the SEO implementation.
Seo::data()
use Aerni\AdvancedSeo\Facades\Seo;
Route::statamic('/login', 'login', [
'title' => 'Login',
...Seo::data()
->title('Login')
->description('Welcome back! Login to your account.')
->toArray(),
]);Route::get('/login', function () {
return view('login', [
'title' => 'Login',
...Seo::data()
->title('Login')
->description('Welcome back! Login to your account.')
->toArray(),
]);
});Available Methods
Method
Description
Last updated