Oh duh! Stupid typo. Should be:
$ImageCategory = ImageCategory::where('styles.id', '=', $category->id)
->leftJoin('images', 'styles.id', '=', 'images.style_id')
->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community