PHPackages                             ticket/ticketit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ticket/ticketit

ActiveLaravel-package[Utility &amp; Helpers](/categories/utility)

ticket/ticketit
===============

Your custom ticket management system for Laravel

6.0.0(1y ago)088MITPHPPHP ^7.1.3

Since Nov 1Pushed 1y agoCompare

[ Source](https://github.com/Agnes-Kalunda/ticketit)[ Packagist](https://packagist.org/packages/ticket/ticketit)[ RSS](/packages/ticket-ticketit/feed)WikiDiscussions 0.2 Synced 1mo ago

READMEChangelogDependencies (9)Versions (52)Used By (0)

Ticketit Package Documentation
==============================

[](#ticketit-package-documentation)

A Laravel support ticket package with dual authentication support for staff members (Users) and customers. This package enables efficient ticket management between customers and staff.

Features
--------

[](#features)

- Dual authentication system (Staff/Customers)
- Ticket management with priority levels
- Status tracking and management
- Role-based access control (Admin/Agent/Customer)
- Comment system
- Customizable views and routes

Requirements
------------

[](#requirements)

- PHP 7.1.3+
- Laravel 5.8+
- MySQL/MariaDB

Installation
------------

[](#installation)

1. Add the package to your composer.json:

```
{
    "require": {
        "ticket/ticketit": "dev-main"
    }
}
```

2. Install via Composer:

```
composer require ticket/ticketit
```

3. Register ServiceProvider in `config/app.php`:

```
'providers' => [
    Ticket\Ticketit\TicketitServiceProvider::class,
],
```

4. Publish package assets:

```
# Publish config
php artisan vendor:publish --provider="Ticket\Ticketit\TicketitServiceProvider" --tag=ticketit-config

# Publish migrations
php artisan vendor:publish --provider="Ticket\Ticketit\TicketitServiceProvider" --tag=ticketit-migrations

# Publish views
php artisan vendor:publish --provider="Ticket\Ticketit\TicketitServiceProvider" --tag=ticketit-views

# Publish routes
php artisan vendor:publish --provider="Ticket\Ticketit\TicketitServiceProvider" --tag=ticketit-routes
```

Configuration
-------------

[](#configuration)

### Models Setup

[](#models-setup)

Add to your User model:

```
use Ticket\Ticketit\Traits\HasTickets;

class User extends Authenticatable
{
    use HasTickets;

    protected $fillable = [
        'name', 'email', 'password', 'ticketit_admin', 'ticketit_agent'
    ];

    protected $casts = [
        'ticketit_admin' => 'boolean',
        'ticketit_agent' => 'boolean'
    ];
}
```

Add to your Customer model:

```
use Ticket\Ticketit\Traits\HasTickets;

class Customer extends Authenticatable
{
    use HasTickets;

    protected $guard = 'customer';

    protected $fillable = [
        'name', 'email', 'password', 'username'
    ];
}
```

### Routes

[](#routes)

The package provides these route groups:

```
// Customer Routes
   Route::group([
        'middleware' => ['web', 'auth:customer'],
        'prefix' => 'customer/tickets',
        'as' => 'customer.tickets.',
        'namespace' => 'Ticket\Ticketit\Controllers'
    ], function () {
        // Basic Ticket Operations
        Route::get('/', 'TicketsController@index')->name('index');
        Route::get('/create', 'TicketsController@create')->name('create');
        Route::post('/', 'TicketsController@store')->name('store');
        Route::get('/{id}', 'TicketsController@customerShow')->name('show')
            ->middleware('Ticket\Ticketit\Middleware\ResAccessMiddleware');
        Route::post('/{ticket}/comments', 'CommentsController@store')->name('comments.store');
        Route::post('/{id}/reply', 'TicketsController@customerReply')
            ->name('reply');
    });

// Staff Routes
  Route::group([
        'middleware' => ['web', 'auth:web'],
        'prefix' => 'staff/tickets',
        'as' => 'staff.tickets.',
        'namespace' => 'Ticket\Ticketit\Controllers'
    ], function () use ($main_route) {
        // Basic Staff Routes
        Route::middleware('Ticket\Ticketit\Middleware\StaffAuthMiddleware')->group(function() {
            Route::get('/', 'TicketsController@staffIndex')->name('index');
            Route::get('/dashboard', 'DashboardController@staffDashboard')->name('dashboard');
            Route::get('/{id}', 'TicketsController@staffShow')->name('show');
            Route::post('/{ticket}/comments', 'CommentsController@store')->name('comments.store');

     } });

     // Admin only routes
    Route::middleware('Ticket\Ticketit\Middleware\AdminAuthMiddleware')->group(function() {
            Route::post('/{id}/assign', 'TicketsController@assignTicket')->name('admin.assign');

        });

     //Agent routes

    Route::middleware([
            'Ticket\Ticketit\Middleware\AgentAuthMiddleware',
            'Ticket\Ticketit\Middleware\ResAccessMiddleware'
        ])->group(function() {
            // Ticket Management
            Route::get('/{id}/view', 'TicketsController@agentShow')->name('agent.show');
            Route::post('/{id}/status', 'TicketsController@updateStatus')->name('status.update');
            });
```

### Database Schema

[](#database-schema)

The package creates these tables:

- ticketit (tickets)
- ticketit\_comments (comments)
- ticketit\_categories (categories)
- ticketit\_priorities (priorities)
- ticketit\_statuses (statuses)
- ticketit\_settings (settings)

Usage
-----

[](#usage)

### Creating Tickets (Customers)

[](#creating-tickets-customers)

```
$ticket = new Ticket();
$ticket->subject = 'Issue Subject';
$ticket->content = 'Issue Description';
$ticket->category_id = 1;
$ticket->priority_id = 1;
$ticket->customer_id = auth()->guard('customer')->id();
$ticket->save();
```

### Managing Tickets (Staff)

[](#managing-tickets-staff)

```
// Get tickets assigned to agent
$tickets = Ticket::where('agent_id', auth()->id())->get();

// Update ticket status
$ticket->status_id = $newStatusId;
$ticket->save();

// Add comment
$comment = new Comment();
$comment->content = 'Response content';
$comment->ticket_id = $ticket->id;
$comment->user_id = auth()->id();
$comment->save();
```

License
-------

[](#license)

The MIT License (MIT). See [License File](LICENSE.md).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

51

Last Release

554d ago

Major Versions

1.0.10 → 2.0.12024-11-01

2.0.9 → 3.0.02024-11-03

3.0.9 → 4.0.02024-11-04

4.0.9 → 5.0.02024-11-04

5.0.9 → 6.0.02024-11-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/baa8aa79e808d412490e7c048e400198a1122e2b920735917b2719761972d553?d=identicon)[Agnes-Kalunda](/maintainers/Agnes-Kalunda)

---

Top Contributors

[![thekordy](https://avatars.githubusercontent.com/u/11343048?v=4)](https://github.com/thekordy "thekordy (320 commits)")[![Agnes-Kalunda](https://avatars.githubusercontent.com/u/97960131?v=4)](https://github.com/Agnes-Kalunda "Agnes-Kalunda (300 commits)")[![balping](https://avatars.githubusercontent.com/u/5840038?v=4)](https://github.com/balping "balping (144 commits)")[![fusiondesign](https://avatars.githubusercontent.com/u/3439293?v=4)](https://github.com/fusiondesign "fusiondesign (60 commits)")[![Edgarborras94](https://avatars.githubusercontent.com/u/6952403?v=4)](https://github.com/Edgarborras94 "Edgarborras94 (11 commits)")[![datune](https://avatars.githubusercontent.com/u/2123730?v=4)](https://github.com/datune "datune (10 commits)")[![fishmad](https://avatars.githubusercontent.com/u/12012101?v=4)](https://github.com/fishmad "fishmad (8 commits)")[![imanghafoori1](https://avatars.githubusercontent.com/u/6961695?v=4)](https://github.com/imanghafoori1 "imanghafoori1 (5 commits)")[![mandrakecr](https://avatars.githubusercontent.com/u/457397?v=4)](https://github.com/mandrakecr "mandrakecr (3 commits)")[![andersondeoliveiramachado](https://avatars.githubusercontent.com/u/1152426?v=4)](https://github.com/andersondeoliveiramachado "andersondeoliveiramachado (3 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (2 commits)")[![kebian](https://avatars.githubusercontent.com/u/251674?v=4)](https://github.com/kebian "kebian (2 commits)")[![tobz-nz](https://avatars.githubusercontent.com/u/443054?v=4)](https://github.com/tobz-nz "tobz-nz (2 commits)")[![pauloklaus](https://avatars.githubusercontent.com/u/7233535?v=4)](https://github.com/pauloklaus "pauloklaus (2 commits)")[![fhferreira](https://avatars.githubusercontent.com/u/140686?v=4)](https://github.com/fhferreira "fhferreira (2 commits)")[![mpryvkin](https://avatars.githubusercontent.com/u/7396482?v=4)](https://github.com/mpryvkin "mpryvkin (1 commits)")[![nikolay-zakharov](https://avatars.githubusercontent.com/u/1189334?v=4)](https://github.com/nikolay-zakharov "nikolay-zakharov (1 commits)")[![overint](https://avatars.githubusercontent.com/u/16414140?v=4)](https://github.com/overint "overint (1 commits)")[![pepoteloko](https://avatars.githubusercontent.com/u/935366?v=4)](https://github.com/pepoteloko "pepoteloko (1 commits)")[![physio](https://avatars.githubusercontent.com/u/729118?v=4)](https://github.com/physio "physio (1 commits)")

---

Tags

laravelsupporthelpdeskticketyour-keywords

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ticket-ticketit/health.svg)

```
[![Health](https://phpackages.com/badges/ticket-ticketit/health.svg)](https://phpackages.com/packages/ticket-ticketit)
```

###  Alternatives

[binshops/laravel-ticket

A simple ticketing system for Laravel 5.1 – 5.8 and 6.\* - 7.\* - 8.\* - 9.\* - 10.\* -which integrates smoothly with Laravel default users and auth system

261.0k](/packages/binshops-laravel-ticket)[panichd/panichd

Ticketing system for Laravel (from 5 to 8). Allows to create new tickets via form only. Includes file attachments, ticket tags, filtering, scheduling and e-mail notifications.

935.7k](/packages/panichd-panichd)[balping/ticketit-app

Ticketit, the simple helpdesk tickets system pre-installed in Laravel

136.6k](/packages/balping-ticketit-app)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
