mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-14 14:27:55 +03:00
Fixed string padding
This commit is contained in:
parent
afa5bf1f0c
commit
6e00a91eea
@ -24,7 +24,7 @@ class ResourcesCommand extends BaseCommand {
|
|||||||
foreach ($content as $model => $i){
|
foreach ($content as $model => $i){
|
||||||
$i = $this->getResourceParams($model, $i);
|
$i = $this->getResourceParams($model, $i);
|
||||||
$migrationName = 'Create' . ucwords(str_plural($i['name']));
|
$migrationName = 'Create' . ucwords(str_plural($i['name']));
|
||||||
$migrationFile = date('Y_m_d_His') . '-' . str_pad($modelIndex , 3, 0) . '_' . snake_case($migrationName) . '_table';
|
$migrationFile = date('Y_m_d_His') . '-' . str_pad($modelIndex , 3, 0, STR_PAD_LEFT) . '_' . snake_case($migrationName) . '_table';
|
||||||
|
|
||||||
|
|
||||||
$this->call('wn:resource', [
|
$this->call('wn:resource', [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user