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)),
        ];
    }

}


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
image.png
Was this page helpful?