Closed Xinaga closed 3 years ago
I'm using sqlite for testing too, so it isn't because of it.
You are probably not passing the model correctly to the comments component:
@comments(['model' => $book])
You would get that error if $model->getKey()
returns null for some reason. See here
This model needs a ID?
Ofcourse. The model should be persisted in database.
Last question, Can I remove the photo?
Sure thing. Publish the views (see readme for this) and remove the photo there.
Thanks Mario!
"The commentable id field is required." When I go to Database dont show any data. Im Using sqlite, can this be the problem?