You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Product::whereRelation('category', 'status', CategoryStatus::active)->get() TypeError: strtolower(): Argument #1 ($string) must be of type string, App\Enums\CategoryStatus given
The text was updated successfully, but these errors were encountered:
Description:
whereRelation doesn't work with enum
Steps To Reproduce:
Product::whereRelation('category', 'status', CategoryStatus::active)->get()
TypeError: strtolower(): Argument #1 ($string) must be of type string, App\Enums\CategoryStatus given
The text was updated successfully, but these errors were encountered: