Skip to content

murdercode/Nova4-SeoTitle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova 4 SeoTitle

This is a text field (formerly called SeoTitle) which calculates a min/max length of your text and helps you to make it better for SEO.

Alt Text

Setup

First install with:

$ composer require murdercode/seo-title

then add it in your Nova class:

<?php

use Murdercode\SeoTitle\SeoTitle;

public function fields(NovaRequest $request)
{
  SeoTitle::make(__('Title'), 'title')
        ->rangeLength(30, 60)
        ->hideIcon() // For hide the SEO icon
        ->rules('required', 'max:255', 'min:3');
}

Enjoy! 🙃