laravelista / comments

Native comments for your Laravel application.
MIT License
744 stars 142 forks source link

Comment dont go to database #156

Closed Xinaga closed 3 years ago

Xinaga commented 3 years ago

"The commentable id field is required." When I go to Database dont show any data. Im Using sqlite, can this be the problem?

mabasic commented 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

Xinaga commented 3 years ago

This model needs a ID?

mabasic commented 3 years ago

Ofcourse. The model should be persisted in database.

Xinaga commented 3 years ago

Last question, Can I remove the photo?

mabasic commented 3 years ago

Sure thing. Publish the views (see readme for this) and remove the photo there.

Xinaga commented 3 years ago

Thanks Mario!