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);
})
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);
})
Browser other questions tagged mysql laravel
You are not signed in. Login or sign up in order to post.
Could explain better is a relation 1 to N? in your question! could put the
models
involved.– novic
A query. https://gist.github.com/gmferreir1/918f2b103c51f5174896c0a71822c8ae
– Guilherme De Menezes Ferreira