witify/laravel-seo-attributes

Quickly add SEO attribute to your views in Laravel

Downloads

1839

Stars

0

Version

1.0.2

Quick JSON reponses in Laravel

Latest Version on Packagist Build Status Maintainability Test Coverage Total Downloads

Installation

You can install the package via composer:

composer require witify/laravel-seo-attributes

Usage

Add it to your controller:


use Witify\LaravelSeoAttributes\SeoTrait;

class HomeController extends Controller {
    use SeoTrait;
}

Available methods

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

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Witify

Author

Witify