Package Data | |
---|---|
Maintainer Username: | agenciafmd |
Maintainer Contact: | irineu@mixd.com.br (Irineu Martins Junior) |
Package Create Date: | 2016-04-25 |
Package Last Update: | 2017-04-06 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:00:09 |
Package Statistics | |
---|---|
Total Downloads: | 1,078 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 3 |
Total Open Issues: | 0 |
Adiciona a opção de personalizar o titulo e a descrição dos gerenciadores.
Adicione no seu composer.json
"require": {
"mixdinternet/seo": "0.1.*"
}
ou
composer require mixdinternet/seo
Abra o arquivo config/app.php
e adicione
Mixdinternet\Seo\Providers\SeoServiceProvider::class
php artisan vendor:publish --provider="Mixdinternet\Seo\Providers\SeoServiceProvider" --tag="migrations"`
php artisan migrate
...
use Mixdinternet\Seo\SeoTrait;
use Mixdinternet\Seo\SeoInterface;
class Article extends Model implements SeoInterface
{
use SeoTrait;
/* linka o campo name (articles) para o title (seo) */
protected $seomap = [
'title' => ['name'],
'description' => ['description']
];
...
}