jameslkingsley / nova-essentials
A Laravel Nova package that adds some essential macros.
Installs: 11 422
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2025-01-09 22:01:32 UTC
README
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()