Unable to use tabs in listview. trim(): Argument #1 ($string) must be of type string, Filament\Suppo

class ListAppointments extends ListRecords
{
protected static string $resource = AppointmentResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}

public function getTabs(): array
{
return [
'upcoming' => Tab::make('Upcoming Appointments')
->modifyQueryUsing(fn (Builder $query) => $query->where('is_confirmed', 1)->where('end_datetime', ">=", Carbon::now())),
'all' => Tab::make('All Appointments')
->modifyQueryUsing(fn (Builder $query) => $query->where('is_confirmed', 1)),
];
}

}
class ListAppointments extends ListRecords
{
protected static string $resource = AppointmentResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}

public function getTabs(): array
{
return [
'upcoming' => Tab::make('Upcoming Appointments')
->modifyQueryUsing(fn (Builder $query) => $query->where('is_confirmed', 1)->where('end_datetime', ">=", Carbon::now())),
'all' => Tab::make('All Appointments')
->modifyQueryUsing(fn (Builder $query) => $query->where('is_confirmed', 1)),
];
}

}
This was working fine until i ran composer update Now im getting trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\IconPosition given
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server