composer中設定
"require": { "php": ">=5.5.9", "laravel/framework": "5.1.*", "barryvdh/laravel-ide-helper":"^2.1", "barryvdh/laravel-debugbar": "^2.1" },
config/app.php中providers設定
/**Third-party Service Providers*/Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,Barryvdh\Debugbar\ServiceProvider::class,
然後開啟首頁是空白,不報錯
找到問題了,自己寫的一個Provider寫的有問題,導致不報錯了
回複內容:
composer中設定
"require": { "php": ">=5.5.9", "laravel/framework": "5.1.*", "barryvdh/laravel-ide-helper":"^2.1", "barryvdh/laravel-debugbar": "^2.1" },
config/app.php中providers設定
/**Third-party Service Providers*/Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,Barryvdh\Debugbar\ServiceProvider::class,
然後開啟首頁是空白,不報錯
找到問題了,自己寫的一個Provider寫的有問題,導致不報錯了
如果是全新安裝的話, 請首先檢查storage目錄是否有寫入權限?
話說, provider後面的那個alias是幹啥的, 一般安裝包時要修改兩處. 又有的安裝包不需要::class
, 這有啥區別?
providers 加 'Barryvdh\Debugbar\ServiceProvider',
aliases 加'Debugbar' => 'Barryvdh\Debugbar\Facade',