Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

On the phone so YMMV:

$addresses = Address::has('location', '=', 0)->get();
0

Of course. Thank you for this quick and simple solution.

Here is more info from the official docs:

http://laravel.com/docs/5.1/eloquent-relationships#querying-relations

0

Sign in to participate in this thread!

Eventy

Your banner here too?

uibar uibar Joined 20 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.