codingmonkeys / laravel-nova-inline-text
A Laravel Nova field which allows updating texts inline.
Package info
github.com/coding-monkeys-bv/laravel-nova-inline-text
pkg:composer/codingmonkeys/laravel-nova-inline-text
0.1.7
2022-09-15 10:02 UTC
Requires
- php: ^7.3|^8.0
- laravel/nova: ^4.11
README
A Laravel Nova field which allows updating texts inline.
Installation:
composer require codingmonkeys/laravel-nova-inline-text
Example:
InlineText::make('time')
->type('time')
->placeholder('##:##')
->rules('date_format:"H:i"')
->successMessage('The time has been updated!')
->help('hh:mm')
->resolveUsing(function ($value) {
return Str::substr($value, 0, 5);
}),