• If you use Vue in the Laravel framework?

  • Php-laravel imports JS, Css, and material files and uses them

  • Import the vue.min.js file.

    1. Import vue.min.js to Public -> js

    2. Use it in index.blade.php

    <div id="app" v-if="isShow"> {{title}} </div> // If you want to display Vue attribute data, you need to add @ to indicate the original form of the output @{{title}} </div> // here you just need to get the file directly./ / You can think of this page file as the same level as the js file <script SRC ="./js/vue.min.js"></script> // You can also import vue <script via CDN SRC = "https://cdn-games.netjoy.com/web/static/redPacket/js/vue.min.js" > < / script > / / using the Vue < script > var app = new Vue ({ el: '#app', data:{ name: 'dzm', isShow: true } })Copy the code