class Dashboard extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithForms;
public function table(Table $table): Table
{
return $table
->query(Test::query())
->deferLoading()
->striped()
->columns([
TextColumn::make('id'),
TextColumn::make('x')
->url("www.youtube.com", true),
TextColumn::make('y'),
])
->filters([
// ...
])
->actions([
// ...
])
->bulkActions([
// ...
])
->recordUrl(
fn (Model $record): string => dd($record),
);
}
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.dashboard';
protected function getHeaderActions(): array
{
return [
Action::make('Update')
->requiresConfirmation()
->color('info')
->action(function () {
//...
})
];
}
//...
}
class Dashboard extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithForms;
public function table(Table $table): Table
{
return $table
->query(Test::query())
->deferLoading()
->striped()
->columns([
TextColumn::make('id'),
TextColumn::make('x')
->url("www.youtube.com", true),
TextColumn::make('y'),
])
->filters([
// ...
])
->actions([
// ...
])
->bulkActions([
// ...
])
->recordUrl(
fn (Model $record): string => dd($record),
);
}
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.dashboard';
protected function getHeaderActions(): array
{
return [
Action::make('Update')
->requiresConfirmation()
->color('info')
->action(function () {
//...
})
];
}
//...
}