When using the RevisionableTrait, how can you trigger it to save a revision for a specific model, all this done from a Controller.
An user sends an email (this action doesn't CRUD any model), but I want to track this action. So I do something like:
Action::make('send email', $user, $email, $time, $from, $to, $subject, ....)
Reason: I want to save the revision when doing something other that the CRUD methods that Revisionable supports. So, I need to trigger it manually.
Example: This package does exactly what I am describing. I can create an Activity whenever is needed. Plus appending some extra information.
Example: I want to create a revision even if the Model doesn't changes!. Some actions that could trigger this could be: a user sends an email, a user looks at an email draft. So, from the Controller I need to log/register that action and save it. Is that possible?
Revisionable looks like it doesn't have an event listening to custom triggers. Am I wrong ?, is there a workaround ?
Notes:
- Maybe I'm using the wrong library. Cause I also want to save actions that doesn't edit (create, update, delete) the model. I mean, I want to save that some actions where made, even if they didn't modify the model, instead they just used it.
- Same question for another package.