Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/ObjectCreateCommand.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public function handle() | ||||
$object = $this->objectClass::create($this->properties); | $object = $this->objectClass::create($this->properties); | ||||
if ($object) { | if ($object) { | ||||
$this->cacheRefresh($object); | $this->cacheRefresh($object); | ||||
$this->info($object->{$class->getKeyName()}); | $this->info($object->{$class->getKeyName()}); | ||||
} else { | } else { | ||||
$this->error("Object could not be created."); | $this->error("Object could not be created."); | ||||
} | } | ||||
return $object; | |||||
} | } | ||||
} | } |