for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\SelfDiagnosis\Checks\Production;
use BeyondCode\SelfDiagnosis\Checks\Check;
class DebugModeIsNotEnabled implements Check
{
/**
* The name of the check.
*
* @return string
*/
public function name(): string
return 'Debug mode is not enabled';
}
* Perform the actual verification of this check.
* @return bool
public function check(): bool
return config('app.debug') === false;
* The error message to display in case the check does not pass.
public function message(): string
return 'You should not use debug mode in production. Set APP_DEBUG to false.';