My project is a content management system & a new version of it will be integrated in a Laravel framework; and there are lots of huge SQL queries which needs to be converted into eloquent syntax.
I found the following tool to convert my already written queries into eloquent syntax, but it does not work.
Could anyone guide me to convert my queries or help me find a tool that could do the job?
Please find below a sample of my queries (note that most of my queries look similar):
SELECT id, name, code,
( SELECT price FROM productprice WHERE id = p.id ) AS price,
( SELECT image FROM productpictures WHERE id = p.id LIMIT 1 )
AS image
FROM product p
WHERE categoryid = 1
Thank you.