for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Giuga\LaravelMailLog;
use Giuga\LaravelMailLog\Commands\ClearOldEmails;
use Illuminate\Support\ServiceProvider;
class LaravelMailLogServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
if ($this->app->runningInConsole()) {
// Publishing the config.
$this->publishes([
__DIR__.'/../config/config.php' => config_path('mail-log.php'),
], 'maillog-config');
$this->commands([
ClearOldEmails::class,
]);
}
* Register the application services.
public function register()
$this->app->register(MailEventServiceProvider::class);
$this->app->register(MailPolicyServiceProvider::class);
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'mail-log');
// Register the main class to use with the facade
$this->app->singleton('laravel-mail-log', function () {
return new LaravelMailLog;
});