wdelfuego / nova-actions
Makes working with Actions in Laravel's Nova 4 easier
Requires
- laravel/nova: ^4.0
- wdelfuego/nova-datetime: ^1.0
README
This package adds support for applying a global DateTime
format to all action events displayed in the action logs of your Nova 4 resources, respecting the global DateTime
format setting introduced by wdelfuego/datetime. It will serve as a base for more extensions and improvements with regard to actions and action events in Laravel's Nova 4.
Installation
composer require wdelfuego/nova-actions
Usage
Formatting DateTime
fields in all action events globally
-
Make sure you've followed steps 1 and 2 of the wdelfuego/datetime package.
When the file
config/nova-datetime.php
exists in your project and specifies aglobalFormat
, you're ready for step 2. -
In
config/nova.php
, at the top of the file, replace this use statement:use Laravel\Nova\Actions\ActionResource;
by this use statement:
use Wdelfuego\Nova\Actions\ActionResource;
That's it!
The 'Action Happened At' column displayed in the action logs of all of your Nova 4 resources is now shown in the global DateTime
format you specified in config/nova-datetime.php
.
Support
For any problems, questions or remarks you might have, please open an issue on GitHub.