descom/descommarket-seo
DescomMarket Seo
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)),
];
}
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
648,266,899
9,701
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
429,221,767
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
403,217,078
4,664
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.3.0 | ^8.4 | ^12.0| | MIT | |
| 1.2.2 | ^8.3 | ^11.0| | MIT | |
| 1.2.1 | ^8.3 | ^11.0| | MIT | |
| 1.2.0 | ^8.3 | ^11.0| | MIT | |
| 1.1.0 | ^8.0 | ^9.0| | MIT | |
| 1.0.0 | ^8.0 | ^9.0| | MIT |