Download the PHP package sdkcodes/lara-ticket without Composer
On this page you can find all versions of the php package sdkcodes/lara-ticket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sdkcodes/lara-ticket
More information about sdkcodes/lara-ticket
Files in sdkcodes/lara-ticket
Package lara-ticket
Short Description A laravel 5 package to handle 'support ticket'
License MIT
Informations about the package lara-ticket
LaraTicket
A Laravel 5 package to handle ticket support system within your project
About
A Laravel 5 package to handle ticket support system within your project. LaraTicket integerates nicely with the existing users database and authentication system. You are also at liberty to configure a number of options to make it match your project more closely. You can use LaraTicket straight out of the box without extra efforts or configurations
Features
- Two main user roles (admin and user)
- Users can create tickets, add comments, open and close tickets
- Feature rich text editor with image and video embeding
- Uses bootstrap 4
- An easy to use admin panel
- Custom views, so you do not need to write your own views
- Custom predefined routes
Installation
- To install LaraTicket, in your existing project root directory, run
composer require sdkcodes/lara-ticket 0.0.3
-
If you're using Laravel < 5.4, copy and add this line to the
providers
array in yourconfig/app.php
fileSdkcodes\LaraTicket\LaraTicketServiceProvider::class,
- Laravel >= 5.5 auto-discovers the package, so you do not need to add it manually.
- Publish the views, config and migrations with the command
php artisan vendor:publish
- Add this trait to your user model
use UserTicket;
Don't forget to import the traituse Sdkcodes\LaraTicket\Traits\UserTicket;
-
Configuration
You can change the configuration values as needed
- Run
php artisan migrate
to do the necessary migrations - LaraTicket alters your users table to add a new column to it
laraticket_admin
. - Change the value of this column to true (or 1) to set any user as a ticket admin
- Visit your project url
/tickets
to begin usage. - Admin can (should) add categories and priorities as needed
Events
version 0.0.2 upwards
This package emits 4 different actions that you can listen for in your app to perform related and necessary actions. These events are:
With your own listeners, you can decide to do different things like send notifications to concerned parties etc.
E.g
To listen for a TicketSubmitted
event, add this to your EventServiceProvider.php
Your event listener code
Routes
- Route::get('admin/tickets', "TicketController@index");
- Route::get('tickets/create', "TicketController@create");
- Route::get('tickets/{status?}', "TicketController@index");
- Route::get('tickets/show/{ticket}', "TicketController@show");
- Route::get('tickets/{ticket}/update', "TicketController@changestatus");
- Route::post('tickets/store', "TicketController@store");
- Route::put('tickets/{ticket}', "TicketController@update");
- Route::delete('tickets/{ticket}', "TicketController@delete");
- Route::post('tickets/comments/store/{ticket}', "TicketController@reply");
- Route::get('admin/tickets/options/settings', "TicketOptionController@options");
- Route::post('admin/tickets/options/settings', "TicketOptionController@store");
- Route::put('admin/tickets/options/settings', "TicketOptionController@update");
Licence
LaraTicket is MIT Licensed. Use and enjoy as you like!