for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\SelfDiagnosis\Checks\Development;
use BeyondCode\SelfDiagnosis\Checks\Check;
class ConfigurationIsNotCached implements Check
{
/**
* The name of the check.
*
* @return string
*/
public function name(): string
return 'Configuration is not cached';
}
* Perform the actual verification of this check.
* @return bool
public function check(): bool
return app()->configurationIsCached() === false;
* The error message to display in case the check does not pass.
public function message(): string
return 'Your configuration files should not be cached during development. Call "php artisan config:clear" to clear the config cache.';