Dynamically hide Laravel barryvdh debugbar
问题 I could not able to hide Laravel Debugbar dynamically, i.e on the run time. I have tried the following from parent Controller class constructor: <?php namespace App\Http\Controllers; class Controller extends BaseController { use AuthorizesRequests, DispatchesJobs, ValidatesRequests; public $foo = 'null'; public function __construct() { \Debugbar::disable(); // and also config(['debugbar.enabled' => false]); .... All of the above tries failed. I'd like to mention that controller is the parent