I need to Migrate SQL query to Laravel ELOQUENT

I have been developing an application in Laravel and I need to sum data from two tables in the database, currently I do it with SQL with the query I relate below but I want to do that same query with ELOQUENT especially using the SQL union all function.

I thank you very much for helping me with this request.

This is the SQL query that works according to the requirements of the application to pass to ELOQUENT.

SELECT codigo_material, SUM(cantidad) AS cantidad_total 
    SELECT codigo_material, cantidad  FROM movimientos_producto
        UNION ALL 
    SELECT codigo_material, cantidad FROM diferencias 
) Materiales
GROUP BY codigo_material;