Skip to content

thomascombe/seotools-backpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEO Tools for Laravel Backpack

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 [email protected] 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages