Quick JSON reponses in Laravel
, (*1)
Installation
You can install the package via composer:, (*2)
composer require witify/laravel-seo-attributes
Usage
Add it to your controller:
``` php, (*3)
use Witify\LaravelSeoAttributes\SeoTrait;, (*4)
class HomeController extends Controller {
use SeoTrait;
}, (*5)
## 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
``` bash
composer test
Changelog
Please see CHANGELOG for more information what has changed recently., (*6)
Contributing
Please see CONTRIBUTING for details., (*7)
Security
If you discover any security related issues, please email info@witify.io instead of using the issue tracker., (*8)
Credits
License
The MIT License (MIT). Please see License File for more information., (*9)