群主,我在执行 str_ramdom(60) 报下面的错误?百度并没有找到这个函数相关说明,
另外有英文的论坛说到这个是 laravel 自带的方法?求解
PHP Fatal error: Call to undefined function str_ramdom() in eval()'d code on line 1
文档中有说明,但命令行中执行却失败了
Uncaught SyntaxError: Unexpected identifier。。。
vue-resource.es2015.js?fc90:292 ReferenceError: Laravel is not defined。。。
Uncaught (in promise) ReferenceError: Laravel is not defined。。。
这让我很困惑,希望可以帮忙看一下,谢谢
require('./bootstrap');
import axios from'axios';
import VueAxios from'vue-axios';
import ElementUI from'element-ui';
import'element-ui/lib/theme-default/index.css';
import DataTables from'vue-data-tables';
/**
* 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.
*/
Vue.use(ElementUI);
Vue.use(DataTables);
Vue.use(VueAxios, axios);
Vue.component('example', require('./components/Example.vue'));
Vue.component('TableSearch', require('./components/TableSearch.vue'));
const app = new Vue({
el: '#app'
});