thomascombe / seotools-backpack
SEO Tools for Laravel Backpack
Installs: 3 417
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.1|^8.0
- illuminate/support: 5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench: 3.8.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-11-06 11:04:02 UTC
README
Using artesaos/seotools
Installation
You can install the package via composer:
composer require thomascombe/seotools-backpack
Usage
// 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});
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 thomascombe42@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.