Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/ObjectUpdateCommand.php
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | public function handle() | ||||
} | } | ||||
$object->{$property} = $value; | $object->{$property} = $value; | ||||
} | } | ||||
$object->timestamps = false; | $object->timestamps = false; | ||||
if ($this->commandPrefix == 'scalpel') { | if ($this->commandPrefix == 'scalpel') { | ||||
$this->objectClass::withoutEvents( | $object->saveQuietly(); | ||||
function () use ($object) { | |||||
$object->save(); | |||||
} | |||||
); | |||||
} else { | } else { | ||||
$object->save(); | $object->save(); | ||||
} | } | ||||
} | } | ||||
} | } |