Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FrazeColder's avatar

Admin needs to approve actions - possible?

Hi, Laravel Nova is providing actions out of the box. However, I would like to modify those actions slightly.

I want to have the possibility to approve actions before they go live. For example: I have users and posts which I manage in my Laravel Nova dashboard and in the resources. Now I would like to give the user the possibility to edit his post. The user is not using Laravel Nova, the User has a normal fronted.

However, I would like to have the possibility to review the changes which were made before I approve the post. So, the changes need to be stored in the database without being online. Is this possible or do I need to implement this by myself?

Kind regards!

0 likes
4 replies
frankincredible's avatar

I'd imagine you'd want to make a pending_actions table with an approved_at timestamp and an approved_by column for a user_id... an whatever else you needed to record (requested_by, action, etc)... and probably a json column for request_parameters to probably record things like the model ID to perform the action on, and any input? Really just depends on how you're using it).

Then make a PendingAction model, list out the ones that haven't been approved yet, and an admin can go in, and actually perform the actions.

FrazeColder's avatar

That is also an idea I have. But now comes to question: Is it possible to have a beautiful compare of before and after in Laravel Nova? Like the action log in Laravel Nova. If you click on details you have a beautiful listing of what have been changed.

Is it possible to have such a listing to for what is requested to change?

Please or to participate in this conversation.