我有對象結構,其中utils和utils.not採取相同的原型(與exist方法)。我簡化它更清楚: var negative = true;
if(negative){
//when negative===true, I want to run exist() through not object
tests.utils.not.exist();
} else {
在我的頁眉和頁腳中有一些來自數據庫的動態導航。所以我需要Laravel中每個站點上的數據庫結果。 Laravel在Sharing Data With All Views下的文檔是描述的方式。 所以我創建查詢在AppServiceProvider下boot(): class AppServiceProvider extends ServiceProvider
{
public funct