laravel-eloquent-case icon indicating copy to clipboard operation
laravel-eloquent-case copied to clipboard

Multiple Conditions on WHEN

Open alexbowers opened this issue 1 year ago • 1 comments

The following syntax is not currently possible to achieve without making use of raw methods.

CASE WHEN price = 10 AND active = 1 THEN 20 END

I'm not sure on how best to achieve this, but this sort of syntax would be very helpful

alexbowers avatar Jul 18 '24 14:07 alexbowers

@alexbowers can you please share a full code snippet here?

aglipanci avatar Jul 25 '24 15:07 aglipanci