Skip to content

A Laravel Nova package that adds some essential macros.

Notifications You must be signed in to change notification settings

jameslkingsley/nova-essentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova Essentials

This package adds some useful field macros for text case, JSON and more to come. To install it simply require the composer package (and register the service provider if you're using an older version of Laravel).

composer require jameslkingsley/nova-essentials

Text Case

This macro is available for all fields.

Text::make('Brand')
    ->studlyCase()
    ->camelCase()
    ->snakeCase()
    ->kebabCase()
    ->titleCase()

JSON From Object

Sometimes your JSON field is converted to an object in your application. For this situation you can use this macro. Note: this macro will automatically call the native Nova json() method.

Code::make('Notifications')->jsonFromObject()

About

A Laravel Nova package that adds some essential macros.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages