Checks

Mail Config In Production

Overview

This check gathers the current mail host configuration and checks if the current environment is production. If the current mail host is any of the following it will fail:

  • mailtrap
  • 127.0.0.1
  • mailtrap
  • mailpit
  • malhog
  • log

Using this check

You can update your FireTowerServiceProvider class to include the check and any options.

<?php
//...
class FireTowerServiceProvider extends ServiceProvider
{
  public function boot(): void
  {
    //...

    FireTower::checks(function () {
        return [
			//...
            MailConfigInProductionCheck::check(),
        ];
    });

  }
}