1
I have 3 tables:
-- tipos
id
nome
-- usuarios
id
tipo_id
nome
email
-- atividades
id
usuario_id
descricao
I’m using Eloquent to capture activity and activity user data:
$results = Atividades::with('Usuario')->get();
But I also need to get the type of user, I’ve tried:
$results = Atividades::with('Usuario')->with('Tipo')->get();
But it does not return user type data, only user data, someone would know how to do this query?
with('Usuario', 'Tipo')->get()
.– RFL