- PHP 8.2+
- Laravel 11.x or 12.x
- MySQL / PostgreSQL / SQLite
composer require escalated/escalated-laravelThe package uses Laravel's auto-discovery, so the service provider is registered automatically.
php artisan escalated:installThis publishes:
- Configuration file to
config/escalated.php - Database migrations
- Vue page components (customer-facing)
To also install agent and admin UI:
php artisan vendor:publish --tag=escalated-admin-assetsphp artisan migrateThe install command will offer to automatically add the Ticketable interface and HasTickets trait to your User model. If you skipped this step or use a custom user model, add them manually:
use Escalated\Laravel\Contracts\HasTickets;
use Escalated\Laravel\Contracts\Ticketable;
class User extends Authenticatable implements Ticketable
{
use HasTickets;
// Your existing model code...
}In App\Providers\AppServiceProvider::boot() for Laravel 12+, or App\Providers\AuthServiceProvider::boot() for Laravel 11 and earlier:
use Illuminate\Support\Facades\Gate;
Gate::define('escalated-admin', function ($user) {
return $user->is_admin; // Your admin check
});
Gate::define('escalated-agent', function ($user) {
return $user->is_agent; // Your agent check
});Edit config/escalated.php to set your user model:
'user_model' => App\Models\User::class,Navigate to /support to see the customer ticket portal.
/support— Customer ticket list/support/agent— Agent dashboard/support/admin/reports— Admin reports