for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tompec\EmailLog;
use Illuminate\Support\ServiceProvider;
class EmailLogServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
/*
* Optional methods to load your package assets
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'email-log');
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'email-log');
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
$this->loadRoutesFrom(__DIR__.'/routes.php');
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/config.php' => config_path('email-log.php'),
], 'config');
// Publishing the views.
/*$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/laravel-email-log'),
], 'views');*/
// Publishing assets.
__DIR__.'/../resources/assets' => public_path('vendor/laravel-email-log'),
], 'assets');*/
// Publishing the translation files.
__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-email-log'),
], 'lang');*/
// Registering package commands.
// $this->commands([]);
}
* Register the application services.
public function register()
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'email-log');
$this->app->register(EmailLogEventServiceProvider::class);
$this->app['router']->aliasMiddleware('mailgun', MailgunWebhook::class);