A join should work for you.
Button::join('items', 'items.cta_id', '=', 'buttons.id')->where('items.id', $variable)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community