<?php current(array|object $array): mixed
<?php } if (($faker === 'word') && (!empty($column->attributes()))) { $faker = sprintf("regexify('[A-Za-z0-9]{%s}')", current($column->attributes())); } $definition .= '$this->faker->' . $faker;
<?php foreach ($modifiers as $modifier) { if (is_array($modifier)) { $modifierKey = key($modifier); $modifierValue = addslashes(current($modifier)); if ($modifierKey === 'default' && ($modifierValue === 'null' || $dataType === 'boolean' || $this->isNumericDefault($dataType, $modifierValue))) { $column_definition .= sprintf('->%s(%s)', $modifierKey, $modifierValue); } else {
<?php if (isset($columns['indexes'])) { foreach ($columns['indexes'] as $index) { $model->addIndex(new Index(key($index), array_map('trim', explode(',', current($index))))); } unset($columns['indexes']); }
<?php $matches = array_filter(array_keys($this->models), fn ($key) => Str::endsWith(Str::afterLast(Str::afterLast($key, '\\'), '/'), [Str::studly($context), Str::studly(Str::plural($context))])); if (count($matches) === 1) { return $this->models[current($matches)]; } }
<?php $matches = array_filter(array_keys($this->models), fn ($key) => Str::endsWith($key, '\\' . Str::studly($context))); if (count($matches) === 1) { return $this->models[current($matches)]->fullyQualifiedClassName(); } $fqn = config('blueprint.namespace');