Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lisotton opened this issue Jun 7, 2021 · 0 comments
Open

Comments

@lisotton
Copy link

lisotton commented Jun 7, 2021

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant