murdercode / nova4-seo-description
A Laravel Nova SEO field for descriptions.
Installs: 2 580
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Language:Vue
Requires
- php: ^7.3|^8.0
This package is auto-updated.
Last update: 2024-11-15 01:01:22 UTC
README
Inspired to Nova 4 SeoTitle, but as TextArea field.
Setup
First install with:
$ composer require murdercode/nova4-seo-description
then add it in your Nova class:
<?php use Murdercode\SeoDescription\SeoDescription; public function fields(NovaRequest $request) { $seoDescription = SeoDescription::make(__('Preview'), 'preview')->rangeLength(120, 155) ->rules(['required', 'min:20']) ->hideFromIndex() ->help(__('The description of the article.')); }
Enjoy! 🙃