Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
add maileclipse middlware example
Browse files Browse the repository at this point in the history
  • Loading branch information
Qoraiche committed May 28, 2019
1 parent bd205ae commit 9f65394
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions config/maileclipse.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
|
*/

'middleware' => [

'middlewares' => [
//'auth',
],

/*
Expand Down
10 changes: 5 additions & 5 deletions src/mailEclipse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

});

Expand Down
2 changes: 1 addition & 1 deletion src/mailEclipseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9f65394

Please sign in to comment.