protected function createItem(Model $item, $data)
{
$this->beforeAssignData($item, $data);
$item->assign($data, null, $this->whitelistCreate());
$this->afterAssignData($item, $data);
$this->beforeSave($item);
$this->beforeCreate($item);
$success = $item->create();
if ($success) {
$this->afterCreate($item);
$this->afterSave($item);
}
return $success ? $item : null;
}