I hope you can help me.
I have this query in laravel
$poa = DB::table('poa_formatos')
->join('entities', 'poa_formatos.entity_id', '=', 'entities.id')
->join('acciones_especificas', 'acciones_especificas.poa_formatos_id', '=', 'poa_formatos.id')
->join('acciones_poa', 'acciones_poa.accion_especifica_id', '=', 'acciones_especificas.id')
->join('objetivos_nacionales', 'poa_formatos.obj_nacional_id', '=', 'objetivos_nacionales.id')
->select('entities.name as nombre_ente', 'acciones_especificas.*', 'acciones_especificas.id as id_accion', 'acciones_especificas.nombre as accion_nombre', 'objetivos_nacionales.item', 'objetivos_nacionales.redaccion as obj_nacional', 'poa_formatos.*')
->where('poa_formatos.entity_id', '=', $entity->id)
->get();
dd($poa);
With the dd he returns the next collection
How do I get only the id_accion? I want to make a dd that only brings me this Item because I need it for another query. I mean something like $ poa-> id_accion!
I do not know if I explain myself, I hope you can help me, thanks in advance.