- Setup Laravel app
- Setup vue.js inside laravel app
- New Laravel app
- Rename
.env.exampleto.env - Config
config/database.phpto MySQL or SQLite - For SQLite, run
touch storage/database.sqliteto create sqlite database - (optional) Create necessary Models and migrations using
art make:model -m - (optional) Setup migrations as appropriate
- (optional) Migrate the database
- (optional) Setup fake data using factory
- (optional) Create master page (main template)
- pull in bootstrap via CDN or whatever
- pull in browserify
<script src="/js/bundle.js">
- Define vue.js scope with
<div id="app"></div> - Setup vue.js app entry point by creating
app.js - Install Elixer with
npm install - Install vue.js using
npm install vue --save - Open
app.jsand type the following
var Vue = require('vue');
new Vue({
el: '#app'
});
hi can you help me set up vue in laravel ?mine appears like a plain text or like a file whose extension is no known.