问题 I set debug mode to true in config->app and deployed it on the server: 'debug' => env('APP_DEBUG', true), I have following code in Controller to check the mode: ... $debug = config('app.debug'); var_dump($debug); $product->save(); Result on local machine: C:\xampp\htdocs\MK\app\Http\Controllers\ProductController.php:45:boolean true Result on the server: bool(false) Whoops, looks like something went wrong. Why isn't debug mode set on server side? 回答1: This line in your config file, 'debug' =>