25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JavaScript<br />

Let's now move the prototype's main script file, app.<strong>js</strong>, into the <strong>Laravel</strong> project: $<br />

cp ../vuebnb-prototype/app.<strong>js</strong> ./resources/assets/<strong>js</strong>/<br />

Given the current Mix settings, this will now be the entry file of the JavaScript<br />

bundle. This means JavaScript dependencies at the bottom of the view can be<br />

replaced with the bundle, that is.<br />

resources/views/app.blade.php: <br />

<br />

Can be replaced with, resources/views/app.blade.php:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!