PHP code example of daacreators / creators-ticketing
1. Go to this page and download the library: Download daacreators/creators-ticketing 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/ */
daacreators / creators-ticketing example snippets
use Filament\Panel;
use Filament\PanelProvider;
use daacreators\CreatorsTicketing\TicketingPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->plugins([
TicketingPlugin::make(),
]);
}
}
use daacreators\CreatorsTicketing\Filament\Widgets\TicketStatsWidget;
class DashboardConfig extends Config
{
public function widgets(): array
{
return [
TicketStatsWidget::class,
];
}
}