murdercode/nova4-seo-description

A Laravel Nova SEO field for descriptions.

v0.0.1 2022-04-14 19:02 UTC

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! 🙃