Laravel: Difference between revisions

269 bytes added ,  4 July 2021
Line 119: Line 119:
Variables can be passed from PHP to JS using view replacement. Note that while your JS is typically separate from your view, you will need to include some JS in your view to use this feature.<br>
Variables can be passed from PHP to JS using view replacement. Note that while your JS is typically separate from your view, you will need to include some JS in your view to use this feature.<br>
[https://stackoverflow.com/questions/30074107/laravel-5-passing-variable-to-javascript/46805484 Example].
[https://stackoverflow.com/questions/30074107/laravel-5-passing-variable-to-javascript/46805484 Example].
==Deployment==
===Directly===
Point your webserver with PHP to the public folder
===Heroku===
[https://devcenter.heroku.com/articles/getting-started-with-laravel Laravel on Heroku]
* Run <code>heroku create</code>
* Create a Procfile and commit it to your git repo.


==Resources==
==Resources==