How can I express the following Query to eloquent?

0
SELECT
tipo_entidad.id,
tipo_entidad.descripcion,
tipo_entidad.vigente
FROM
tipo_entidad
INNER JOIN estado AS e ON e.valor = tipo_entidad.vigente
WHERE tipo_entidad.vigente=e.valor and
e.tabla = 'VIGENCIA' AND 
(tipo_entidad.descripcion LIKE '%ad%' OR
e.descripcion_estado LIKE '%ad%')
    
asked by Jorge Estigarribia 09.11.2017 в 04:00
source

0 answers