require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
import VueRouter from 'vue-router'
import router from './routes'
Vue.use(VueRouter);
//Vue.component('app', require('./components/Example'))
//Vue.component('example', require('./components/Example.vue'));
new Vue({
el: '#app',
router
});
v-validate="{rules:{required: true ,min: 6,confirmed: password } }" confirmed 后面没有 ‘’吧 我使用confirmed :'password' 有bug
为什么Vue-devtools 使用不了。。。
-Vue.js is detected on this page. Open DevTools and look for the Vue panel.
知道原因了
return $this->item($twitter->twitterpics, new TwitterpicTransformer());
其中item必须传入的是一个单独的model类,不可以是集合 如果传入集合 必须是 collection 而我的twitter 中的 是一个集合 我只取 没个twitter的第一个pic 就可以使用item 来 transform 了 哈哈哈哈
请求了啊。不过每次都要include 我就换成了defaultinclude..我还在研究 哎弄了一天了