You can install the package via composer:
composer require witify/laravel-seo-attributes
Add it to your controller:
use Witify\LaravelSeoAttributes\SeoTrait;
class HomeController extends Controller {
use SeoTrait;
}
Method | Description |
---|---|
seo()->setTitle(string $title) | Adds seo.title value in the view |
seo()->setDescription(string $description) | Adds seo.description value in the view |
seo()->setRelCanonical(string $relCanonical) | Adds seo.rel_canonical value in the view |
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email info@witify.io instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.