environment('local')) { $debug = true; } if ($debug) { \DB::enableQueryLog(); } return $this; }); } }