without events with import model

Can I use the importer without it issuing events that my Observer will pickup? I see the
$user = User::withoutEvents(function () {
User::findOrFail(1)->delete();

return User::find(2);
});
$user = User::withoutEvents(function () {
User::findOrFail(1)->delete();

return User::find(2);
});
but don't know where to apply it. Is there a config option?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?