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
{{ message }}
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
Yes it is, but you cannot use the where directive like that, it's a caveat. As mentioned in the docs (https://github.com/rinvex/attributes#querying-models), you should use the whereHas method. Every attribute acts as a relationship, so they can be queried that way:
$companies = Company::whereHas('Cities', function (\Illuminate\Database\Eloquent\Builder $builder) {
$builder->where('content', 'Alexandria');
})->get();
Hi!
Is it possible to user multiple where clauses on entities using attributes? Like so:
Thanks in advance!
The text was updated successfully, but these errors were encountered: