Tickets API

Advanced information for expert users.

Models

  • 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 started as a Laravel project in Feb 10, 2016 and now it has been recoded into independent packages with lots of new features.


Donations

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

Laraketai

Snow McFox