I have solved this by using $slugs = Review::with('reviewimages','maps','categorys') ->whereHas('categorys', function($q) use ($cat){ $q->where('cat', $cat); }) ->where('slug', $slug) ->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community