Skip to content

descom-es/descommarket-seo

Repository files navigation

DescomMarket Seo

tests analyze

Installation

composer require descom-es/descommarket-seo
php artisan migrate

Usage

Configure yor model to use Seo

Add Trait DescomMarket\Seo\Traits in your Model that required Seo.

Add Seo to your model

    $product->addMeta('title', 'new title to product');
    $product->addMeta('description', 'Meta description to product');

Get MetaResource to your API

    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'meta' => $this->whenLoaded('meta', new MetaResource($this->meta)),
        ];
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages