diff --git a/config/maileclipse.php b/config/maileclipse.php index bc8ce6e..1689323 100644 --- a/config/maileclipse.php +++ b/config/maileclipse.php @@ -56,8 +56,8 @@ | */ - 'middleware' => [ - + 'middlewares' => [ + //'auth', ], /* diff --git a/src/mailEclipse.php b/src/mailEclipse.php index 8690ca6..3cf413b 100644 --- a/src/mailEclipse.php +++ b/src/mailEclipse.php @@ -755,11 +755,11 @@ static private function getMailableViewData($mailable, $mailable_data) $data = $mailableData->map(function($parameter) use ($mailable_data){ - return [ - 'key' => $parameter, - 'value' => property_exists($mailable_data, $parameter) ? $mailable_data->$parameter : null, - 'data' => property_exists($mailable_data, $parameter) ? self::viewDataInspect($mailable_data->$parameter) : null, - ]; + return [ + 'key' => $parameter, + 'value' => property_exists($mailable_data, $parameter) ? $mailable_data->$parameter : null, + 'data' => property_exists($mailable_data, $parameter) ? self::viewDataInspect($mailable_data->$parameter) : null, + ]; }); diff --git a/src/mailEclipseServiceProvider.php b/src/mailEclipseServiceProvider.php index 9db7551..ff570b6 100644 --- a/src/mailEclipseServiceProvider.php +++ b/src/mailEclipseServiceProvider.php @@ -14,7 +14,7 @@ class mailEclipseServiceProvider extends ServiceProvider */ public function boot() { - Route::middlewareGroup('maileclipse', config('maileclipse.middleware', [])); + Route::middlewareGroup('maileclipse', config('maileclipse.middlewares', [])); $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'maileclipse'); $this->loadViewsFrom(__DIR__.'/../resources/views', 'maileclipse');