Skip to content

[Bug]: Attempted to lazy load [commentable] on model [Coolsam\NestedComments\Models\Comment] but lazy loading is disabled. #42

@piotrh052b

Description

@piotrh052b

What happened?

I can't add several first level comments because I get an error.
The same thing happens when trying to add several nested comments

How to reproduce the bug

  1. Add Model::shouldBeStrict(); to AppServiceProvider.
  2. Add first comment.
  3. Try to add second comment (not a reply to the first comment).

Package Version

1.1.1

PHP Version

8.2

Laravel Version

12.19.3

Which operating systems does with happen with?

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions