Using artesaos/seotools
You can install the package via composer:
composer require thomascombe/seotools-backpack
// Add SeoCrud to your Backpack Crud Controller
use SeoCrud;
// and call :
$this->setSeoFields();
// to add default fields
// Add SeoFields to your model
use SeoFields;
You can override SEO fields with override $seoFields
To create database you can use migration :
php artisan vendor:publish --provider="Thomascombe\SeotoolsBackpack\SeotoolsBackpackServiceProvider"
Add fields in $fillable
array if you want to save
To set SEO Meta tags :
SEO::setTitle($youModel->{\Thomascombe\SeotoolsBackpack\Models\Interfaces\SeoFieldsInterface::COLUMN_SEO_TITLE});
SEO::setDescription($youModel->{\Thomascombe\SeotoolsBackpack\Models\Interfaces\SeoFieldsInterface::COLUMN_SEO_DESCRIPTION});
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 [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.