On this page
Configuration
to configure the plugin Thunder, you can pass the configuration to the plugin in adminPanelProvider
these all the available configuration, and their defaults values
1ThunderPlugin::make() 2 ->models([ 3 'Office' => \LaraZeus\Thunder\Models\Office::class, 4 'Operations' => \LaraZeus\Thunder\Models\Operations::class, 5 'Ticket' => \LaraZeus\Thunder\Models\Ticket::class, 6 'TicketsStatus' => \LaraZeus\Thunder\Enums\TicketsStatus::class, 7 'Abilities' => \LaraZeus\Thunder\Enums\Abilities::class, 8 ]) 9 ->uploadDisk('public')10 ->uploadDirectory('tickets')11 ->navigationGroupLabel('Thunder')12 ->hideResources([13 OfficeResource::class,14 TicketResource::class,15 ])16 17 ->globallySearchableAttributes([18 // you can return empty array to disable it19 OfficeResource::class => ['name', 'slug'],20 TicketResource::class => ['ticket_no'],21 ])
Frontend Configuration
use the file zeu-thunder.php, to customize the frontend, like the prefix,domain, and middleware for each content type.
to publish the configuration:
1php artisan vendor:publish --tag=zeus-thunder-config
Ticket No Generator
by default, thunder will generate the ticket number using a random string,
1namespace LaraZeus\Thunder\Support; 2 3use Illuminate\Support\Str; 4 5class TicketNo 6{ 7 public static function get(): string 8 { 9 return Str::random(6);10 }11}
if you want to change that, create any class with the method get, and set it in the config file:
'ticket-no' => \LaraZeus\Thunder\Support\TicketNo::class,
for example:
1public static function get(): string2{3 return DB::table('tickets')->max('ticket_no') + 1;4}
Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.