protected function generateBlameable($table)
{
$createdBy = $table->getColumn($this->createdByColumn) !== null ? $this->createdByColumn : false;
$updatedBy = $table->getColumn($this->updatedByColumn) !== null ? $this->updatedByColumn : false;
if ($this->useBlameableBehavior && ($createdBy || $updatedBy)) {
return ['createdByAttribute' => $createdBy, 'updatedByAttribute' => $updatedBy];
}
return [];
}