<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codetechnl / laravel-taskbridge-filament-4 example snippets
use CodeTechNL\TaskBridgeFilament\TaskBridgePlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
TaskBridgePlugin::make(),
]);
}
use CodeTechNL\TaskBridgeFilament\Enums\JobPickerSize;
TaskBridgePlugin::make()
->navigationGroup('Infrastructure')
->navigationLabel('Scheduler')
->navigationIcon('heroicon-o-clock')
->navigationSort(50)
->slug('scheduler')
->heading('Scheduled Jobs')
->subheading('Manage your AWS EventBridge schedules')
->paginationPageOptions([10, 25, 50])
->defaultPaginationPageOption(25)
->groupActions() // collapse row actions into a dropdown
->preventDuplicates(true) // block the same class being registered twice
->jobPickerSize(JobPickerSize::Large) // Medium (default), Large, or Xl
->withoutWidget() // remove the stats widget
->withoutRunLog() // remove the Run Logs page
->runLogNavigationLabel('Job History')
->runLogSlug('job-history')
->runLogPaginationPageOptions([25, 50])
use CodeTechNL\TaskBridge\Contracts\HasCustomLabel;
use CodeTechNL\TaskBridge\Contracts\HasGroup;
class SendDailyReport implements HasCustomLabel, HasGroup, ShouldQueue
{
public function taskLabel(): string
{
return 'Daily Report — Finance';
}
public function group(): string
{
return 'Finance'; // Overrides the folder-based detection.
}
}
bash
php artisan make:filament-theme admin
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.