| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | <?phpreturn array(	/*	|--------------------------------------------------------------------------	| Error Detail	|--------------------------------------------------------------------------	|	| Detailed error messages contain information about the file in which	| an error occurs, a stack trace, and a snapshot of the source code	| in which the error occured.	|	| If your application is in production, consider turning off error details	| for enhanced security and user experience.	|	*/	'detail' => true,	/*	|--------------------------------------------------------------------------	| Error Logging	|--------------------------------------------------------------------------	|	| Error Logging will use the "logger" function defined below to log error	| messages, which gives you complete freedom to determine how error	| messages are logged. Enjoy the flexibility.	|	*/	'log' => false,	/*	|--------------------------------------------------------------------------	| Error Handler	|--------------------------------------------------------------------------	|	| Because of the various ways of managing error logging, you get complete	| flexibility in Laravel to manage error logging as you see fit.	|	| This function will be called when an error occurs in your application.	| You are free to handle the exception any way your heart desires.	|	| The error "severity" passed to the method is a human-readable severity	| level such as "Parsing Error" or "Fatal Error".	|	*/	'handler' => function($exception, $severity, $message, $config)	{		if ($config['detail'])		{			$data = compact('exception', 'severity', 'message');			$response = Response::view('error.exception', $data)->status(500);		}		else		{			$response = Response::error('500');		}		$response->send();	},	/*	|--------------------------------------------------------------------------	| Error Logger	|--------------------------------------------------------------------------	|	| Because of the various ways of managing error logging, you get complete	| flexibility to manage error logging as you see fit.	|	| This function will be called when an error occurs in your application	| and error loggins is enabled. You can log the error however you like.	|	| A simple logging system has been setup for you. By default, all errors	| will be logged to the storage/log.txt file.	|	*/	'logger' => function($exception, $severity, $message, $config)	{		File::append(STORAGE_PATH.'log.txt', date('Y-m-d H:i:s').' '.$severity.' - '.$message.PHP_EOL);	});
 |