PHP code example of ichbin / filament-ticket

1. Go to this page and download the library: Download ichbin/filament-ticket library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ichbin / filament-ticket example snippets


return [
    'resources' => [
        TicketResource::class,
        CategoryResource::class,
        StatusResource::class,
        PriorityResource::class,
    ],
    'models' => [
        \App\Models\User::class,
    ],
    "navigation_group" => "Ticket System",
    "ticket_label" => "Custom Fields",
    "ticket_responses_label" => "Custom Fields Responses",
    "category_label" => "Custom Fields",
    "category_responses_label" => "Custom Fields Responses",
    "status_label" => "Custom Fields",
    "status_responses_label" => "Custom Fields Responses",
    "priority_label" => "Custom Fields",
    "priority_responses_label" => "Custom Fields Responses",
];
bash
php artisan vendor:publish --tag="filament-ticket-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-ticket-config"
bash
php artisan vendor:publish --tag="filament-ticket-views"