Downloads
Stars
Version
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
This macro is available for all fields.
Text::make('Brand')
->studlyCase()
->camelCase()
->snakeCase()
->kebabCase()
->titleCase()
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()