我试图查明我的表是否为空,但出现此错误
调用未定义函数 App\Http\Controllers\isEmpty()
我确实检查了与我的标题相似的问题,但没有我需要的内容。
这是我的代码
$orders = Order::all();
if(isEmpty($orders))
{
echo "Im empty";
die();
}else{
echo "im not empty";
die();
}
Run Code Online (Sandbox Code Playgroud) 我的 vue 组件没有出现,我也看不到哪里出错了,我希望另一双眼睛可以指出我哪里出错了。我正在运行 npm run watch 并且我已经清除了我的缓存。
我的 app.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
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 …Run Code Online (Sandbox Code Playgroud)