Skip to content

BadMethodCallException Call to undefined method App\Models\VenueSpecialist::getParticipantDetails() #335

@yeasir2148

Description

@yeasir2148

Describe the bug
On laravel 9, after running migration and adding the Messageable trait on the user model, when i try to get the details of the participant using the method as described in the doc, it is throwing error:

BadMethodCallException Call to undefined method App\Models\VenueSpecialist::getParticipantDetails()

I looked inside the Messageable trait, and there is no such method defined! The only definition of this method is inside the Tests directory of this package!!

To Reproduce
Steps to reproduce the behavior:

  1. laravel/framework: "^9.19"
  2. musonza/chat: "^6.4",
  3. Install package, run migration, publish the config file.
  4. Open Tinker session.
  5. Find any model where you have used the Messageable trait and try to call the getParticipantDetails method

Expected behavior
Should return the participant details.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions