lumen-generators
lumen-generators copied to clipboard
Error on MigrationCommand.php: count()
Hello, i try to create one model with method wn:resources and get this error: In MigrationCommand.php line 118: count(): Parameter must be an array or an object that implements Countable
I check the MigrationCommnand.php file and change the method count by strlen and this work fine.
I hope can you update the repo with this fix to the next version (i have 1.3.4v).
Bye!
if(is_array($key['name'])){
if(! $key['table']){
$key['table'] = str_plural(substr($key['name'], 0, count($key['name']) - 4));
}
}else{
if(! $key['table']){
$key['table'] = str_plural(substr($key['name'], 0, 1 - 4));
}
}
Hello, i try to create one model with method wn:resources and get this error: In MigrationCommand.php line 118: count(): Parameter must be an array or an object that implements Countable
I check the MigrationCommnand.php file and change the method count by strlen and this work fine.
I hope can you update the repo with this fix to the next version (i have 1.3.4v).
Bye!
This is da right way !!!
This fixed it, this project seems to be abandoned, so I forked it and delivered your change.
https://github.com/ryanrapini/lumen-generators