vendredi 27 septembre 2019

How to fix 'PHP code not working in laravel public folder'

I embed a php in one of my views with:

<iframe src="/game/game.blade.php" width="1519" height="690"></iframe>

In this file I have the following code:

<script>
    var userID = ;
    var userCredit = ;
</script>

I get the following error: Uncaught SyntaxError: Unexpected token '{'

I already tried to use etc. I also tried to embed a link that used a route to another view but with this I got a 403 forbidden error.

Does anyone know how I could fix this? or have another solution for me?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire