Tickets API

Advanced information for expert users.


  • Laralum\Tickets\Models\Ticket

    • user()

      Returns the ticket user relationship (Laralum\Users\Models\User).

    • admin()

      Returns the ticket admin user relationship (Laralum\Users\Models\User).

    • messages()

      Returns the tickets messages relationship (Laralum\Tickets\Models\Message).

    • deleteMessages()

      Deletes all the ticket messages.

  • Laralum\Tickets\Models\Message

    • user()

      Returns the message relationship (Laralum\Users\Models\User).

    • ticket()

      Returns the ticket relationship (Laralum\Tickets\Models\Ticket).

    • isAdmin()

      Returns true if message user id is equal to message ticket user id.

    • isCurrentUser()

      Returns true if message user is the logged in user.

Did you know?

Laralum is open source hosted on github and currently have no funding.


Please consider donating if you liked the project, we currently have no funding and we're spending a lot of time maintaining and developing this project.

The creators

Èrik Campobadal Forés

Aitor Riba Archilla

Major Contributors

Krishan König


Snow McFox