Skip to content
#

enum

Here are 439 public repositories matching this topic...

laravel-enum
abilogos
abilogos commented Jul 25, 2020

Hi,
i think one important feature for flagged enums would to query DB using query builder and enums.

Order::where("client_id",Auth::id())
               ->whereRaw("order_status"." & ?",[OrderStatus::Ready()])
               ->get();

its what i was done.

but could have a nicer method like:

    ->whereHasFlag("order_status",OrderStatus::Ready())

it would be my pleasu

Improve this page

Add a description, image, and links to the enum topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the enum topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.