thomascombe/seotools-backpack

SEO Tools for Laravel Backpack

0.5.0 2023-04-06 07:19 UTC

This package is auto-updated.

Last update: 2024-04-06 09:45:51 UTC


README

Using artesaos/seotools

Latest Version on Packagist Total Downloads

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.