Turn on debug
mode. lists()
method returns array, which doesn't have join()
method. Plus, you'd probablu want to use relations instead of pure joining.
Assuming you're using Eloquent models:
$thoughts = Thought::all();
$unused_verses = Verse::whereNotIn('id', $thoughts->list('verse_id'))->get();
Then make your list however you want:
foreach ($unused_verses as $verse)
{
// do stuff here...
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community