Skip to content

Save a new Action every time the toggle is switched in the index #45

@lisotton

Description

@lisotton

Laravel Nova keep an history of the changes of a resource in table action_events, but this package is not creating a new entry in this table.

I think we just need to call before saving the Model in ApiController:

Nova::actionEvent()->forResourceUpdate($request->user(), $model)->save();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions