for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Arrilot\SystemCheck\Checks\Laravel\Production;
use Arrilot\SystemCheck\Checks\Check;
use Arrilot\SystemCheck\CheckResult;
class MailDriver extends Check
{
/**
* The check description.
*
* @var string
*/
protected $description = 'mail.driver and mail.pretend';
* Perform the check.
* @return CheckResult
public function perform()
if ($this->app['config']['mail.driver'] === 'array') {
return $this->fail("Mail driver must not be set to 'log' in production");
}
if ($this->app['config']['mail.pretend']) {
return $this->fail("'mail.pretend' must not be set to 'true' in production");
return $this->ok();