wdelfuego/nova-actions

Makes working with Actions in Laravel's Nova 4 easier

v1.0.1 2022-06-30 16:20 UTC

This package is auto-updated.

Last update: 2024-10-29 06:19:44 UTC


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

  1. 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 a globalFormat, you're ready for step 2.

  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.