Skip to content
#

laravel-5-package

Here are 938 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 laravel-5-package 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 laravel-5-package topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.