private function automaticLabels($name, $label)
{
// Disabled automatic labels
if (!$this->app['former']->getOption('automatic_label')) {
$this->name = $name;
$this->label($label);
return false;
}
// Check for the two possibilities
if ($label and is_null($name)) {
$name = Str::slug($label);
} elseif (is_null($label) and $name) {
$label = preg_replace('/\\[\\]$/', '', $name);
}
// Save values
$this->name = $name;
$this->label($label);
}