Download the PHP package sanjabteam/ticket without Composer
On this page you can find all versions of the php package sanjabteam/ticket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sanjabteam/ticket
More information about sanjabteam/ticket
Files in sanjabteam/ticket
Package ticket
Short Description Ticket package for sanjab admin panel.
License MIT
Homepage https://github.com/sanjabteam/ticket
Informations about the package ticket
Support ticketing for Sanjab
- Installation
- Getting started
- Configuration
- Notification
- Client-side
- License
Installation
First, you should prepare Sanjab for custom compile.
Install the composer package.
Install the npm package.
Submit sanjab-ticket
plugin for sanjab Vue instance in sanjab.js
:
Compile javascript:
Publish config file:
Add ticket controllers to controllers
in config/sanjab.php
:
and add provider to plugins/providers in config/sanjab.php
:
Migrate database:
Go to the admin panel and Tickets
and Ticket Settings
should be in the sidebar.
Getting started
Provide some ticket category/priority.
Make sure you wrote seeder for users before this seeder and make sure you have more than 1 user.
Open TicketSeeder and provide some data.
And seed:
Configuration
- database
- model: The user model class.
- format: Format of showing user name. (Example:
"%first_name %last_name"
) - fields: Extra user model fileds that should be shown in ticket messages page. (Example:
["email" => "E-Mail", "mobile" => "Mobile", "address" => "Address"]
)
- files
- disk: Disk to save ticket files.
- directory: Directory in the disk. You can use {TICKET_ID} to make directory per ticket. (Example:
tickets/{TICKET_ID}
)
- notifications
- new_ticket: When new ticket message submitted.
- admin: Notification class for all admins that has access to the tickets section
- client: Notification class for the client that submitted ticket when got an answer.
- new_ticket: When new ticket message submitted.
Notification
First, make sure you created the Notifications table.
and also make sure you used Illuminate\Notifications\Notifiable
trait in your user model class.
Then you should see a bell icon in the sanjab navbar at the top for notifications.
Create a notification class for admins.
For example, we only gonna use the database. Of course, you can send an email and/or SMS and/or any other method.
And then submit notification class in config/sanjab-ticket.php
:
And now make a new ticket.
Client-side
It's all up to you. You only need to work with these model classes.
- SanjabTicket\Models\Ticket
- SanjabTicket\Models\TicketMessage
- SanjabTicket\Models\TicketCategory
- SanjabTicket\Models\TicketPriority
License
The MIT License (MIT). Please see License File for more information.