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

Nothing happens when I try to save instance from Comment model #400

Closed
mahmoudmohamedramadan opened this issue Aug 27, 2021 · 2 comments
Closed

Comments

@mahmoudmohamedramadan
Copy link

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

{6E512FF6-4247-4940-9A2E-1FCBE4DFE649}

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

{8DB90833-EA45-4BBA-AE08-7C072B3EFD60}

Here I tried to add a new comment to the post BUT nothing happens

{797645F9-ED65-48D8-AF8B-D7E9D847F9EF}

@antoniputra
Copy link

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
Copy link
Author

@antoniputra thanks... it's working now ✨

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

2 participants