@{{ message }}
Home>Article>PHP Framework> Does laravel support vue?
Before we start learning to use Vue.js, we must first introduce it into our Laravel project. Here I choose the simplest way,Directly download the corresponding open version JS file (http://vuejs.org/js/ vue.js), and then place the downloaded vue.js file into the js directory under the public directory (create it if there is no js directory).
Hello World(Recommended learning:laravel development)
Like any other language/framework learning, let's start by printing Hello World, and at the same time we will learn one of Vue's functional features: data binding.
We use the view file welcome.blade.php provided by Laravel as a demonstration file. Before starting, introduce vue.js before 73a6ac4ed44ffec12cee46588e518a5e:
Then we edit welcome. The content of the blade.php file is as follows:
@{{ message }}
Write some js code at the same time:
The above is the detailed content of Does laravel support vue?. For more information, please follow other related articles on the PHP Chinese website!