I am interested if there is a difference between saving the model using withoutEvents and saveQuietly. What is the main difference between next two pieces of code:
$user = User::withoutEvents(function () use () {
$user = User::findOrFail(1);
$user->name = 'Victoria Faith';
$user->save();
return $user;
});
and:
$user = User::findOrFail(1);
$user->name = 'Victoria Faith';
$user->saveQuietly();