Nothing happens when I try to save instance from `Comment` model
mahmoudmohamedramadan opened this issue · 2 comments
mahmoudmohamedramadan commented
I was would like to work WITH this awesome package into the Laravel project WITH an 8.40
version and PHP WITH an ^8.0
version. I've installed this package successfully and migrated the table
also, I've used the RevisionableTrait
trait in the \App\Models\Comment
model and when I tried to add a new comment to the post nothing happens in the database
Here I tried to add a new comment to the post BUT nothing happens
antoniputra commented
if you are talking about storing revision for recently created model.
You need to enable this:
protected $revisionCreationsEnabled = true;
See more:
https://github.com/VentureCraft/revisionable#storing-creations
mahmoudmohamedramadan commented
@antoniputra thanks... it's working now ✨