You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to access the Saved Models in the AfterImport Event to send Notifications to the respective Mails in there.
I import the Model like follows:
public function model(array $row)
{
return new Customer([
"name" => $row['name'],
"mail" => $row['email'],
]);
}
public function registerEvents(): array
{
return [
AfterImport::class => function(AfterImport $event) {
// SEND NOTIFICATIONS HERE
},
];
}
But the $event-> getConcernable();
Doesn't return anything except App\Imports\CustomImport {#1270} // app/Imports/CustomImport.php:40
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i'm trying to access the Saved Models in the AfterImport Event to send Notifications to the respective Mails in there.
I import the Model like follows:
But the $event-> getConcernable();
Doesn't return anything except
App\Imports\CustomImport {#1270} // app/Imports/CustomImport.php:40
Beta Was this translation helpful? Give feedback.
All reactions