mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
29 lines
677 B
PHP
29 lines
677 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Section\SourceResource\Pages;
|
|
|
|
use App\Filament\PageList;
|
|
use App\Filament\Resources\Section\SourceResource;
|
|
use App\Models\Source;
|
|
use App\Models\Team;
|
|
use Filament\Pages\Actions;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
|
|
class ListSources extends PageList
|
|
{
|
|
protected static string $resource = SourceResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Actions\CreateAction::make(),
|
|
];
|
|
}
|
|
|
|
protected function getTableQuery(): Builder
|
|
{
|
|
return Source::query()->with('search_box')->orderBy('mode', 'asc');
|
|
}
|
|
}
|