Pharaonic
Loading...

Scopes / Relationships

Scopes / Relationships

# Scopes

1$pplWithoutMoney = Person::withoutMonies()->get();
2 
3$pplWithMoney = Person::withMoney('USD')->get();
4$pplWithMoney = Person::withMoney('USD', 'balance')->get();
5 
6$pplWithMoney = Person::withAnyMoney(['USD'])->get();
7$pplWithMoney = Person::withAnyMoney(['USD'], ['balance'])->get();