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 RoutesAreCached implements Check
{
/**
* The name of the check.
*
* @return string
*/
public function name(): string
return 'Routes are cached';
}
* Perform the actual verification of this check.
* @return bool
public function check(): bool
return app()->routesAreCached() === true;
* The error message to display in case the check does not pass.
public function message(): string
return 'Your routes should be cached in production. Call "php artisan route:cache" to create the route cache.';