-
Notifications
You must be signed in to change notification settings - Fork 36
Config enable tool
Bart van Hoekelen edited this page Apr 26, 2017
·
2 revisions
You can enable or disable the performance tool. There are two ways. Manual by with a boolean as variable or with the help of de Laravel ENV variable.
// Add namespace at the top
use Performance\Config;
// Disable tool manual
Config::setEnableTool(false);
// OR with the Laravel ENV file
// Disable tool by the ENV by using the APP_DEBUG value.
Config::setEnableTool('ENV:APP_DEBUG');
Config::setConsoleLive($status);
Item | Type | Accept | Default | Required |
---|---|---|---|---|
$status |
bool or string
|
true , false or ENV: APP_DEBUG
|
false |
yes |
Note: pay attention on the printed results.
Return to wiki home page