Join Only 1 result

Asked

Viewed 29 times

0

Does anyone know how to make a Join return only the first result ?

->join('addresses', function ($join) {
$join->on('s_complete_clients.id', '=', 'addresses.client_id')->limit(1);
})
  • Could explain better is a relation 1 to N? in your question! could put the models involved.

  • A query. https://gist.github.com/gmferreir1/918f2b103c51f5174896c0a71822c8ae

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.