It's not technically possible, as a join statement will be executed as a SQL query on a single database.
Any solution to this problem? create microservico rest? to be consumed in the application. What would you tell me?
Assuming you have the foreign key defined in contacts, you'll have something like :
SELECT * FROM contacts
Then retrieve the client_id's as an array :
SELECT * FROM clients WHERE id IN (1,2,3,4,...)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community