Use Enums in modifyQueryUsing for the ListRecord getTabs
I am using Enums in select on the form and in a selec filter but don't get how to use in a getTabs in the ListRecord page of my Resource.
I was using another method and it worked fine but the enum is more sustainable. In this example the Enum 10 is labeled "Running"
the query should be ``` $query->where('status_id', CampaignStatusEnum::Run->value )
the query should be ``` $query->where('status_id', CampaignStatusEnum::Run->value )
2 Replies