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

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceM committed Nov 19, 2022
1 parent 6b3ab7e commit 9dd0b5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/MailEclipse.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,10 @@ protected static function mailablesList()
$collection = collect($fqcns)->map(function ($mailable) {
return $mailable;
})->reject(function ($object) {
return ! method_exists($object['namespace'], 'build');
return ! array_search(
'Illuminate\Contracts\Mail\Mailable',
class_implements($object['namespace']
));
});

return $collection;
Expand Down Expand Up @@ -810,7 +813,7 @@ public static function buildMailable($instance, $type = 'call')

if ($type === 'call') {
if (self::handleMailableViewDataArgs($instance) !== null) {
return app()->call([self::handleMailableViewDataArgs($instance), $method]);
return self::handleMailableViewDataArgs($instance);
}

if ($method == 'content') {
Expand Down

0 comments on commit 9dd0b5c

Please sign in to comment.