Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jeloqim's avatar

Laracasts PHP to JS transformer package causing the positioning of a div to change

Hi,

I am using Laracasts PHP to JS transformer, found here. On any html page you use it you are supposed to create a blank footer.blade.php file (really an empty file), and then on the page you want to use the JS variables you have to do @include ('footer') . There is one div on a page like this whose positioning is moved up by one pixel. I couldn't figure out why until I started deleting part of the html and I found out that removing the include footer fixes it.

Has anyone else had this problem and know of a solution?

0 likes
1 reply
jeloqim's avatar

Found, the problem. Stupid mistake of including the footer twice.

Please or to participate in this conversation.