|
|
@@ -72,7 +72,7 @@ class MakeTestCommand extends \Illuminate\Foundation\Console\TestMakeCommand
|
|
|
}
|
|
|
protected function getModelNamePlural()
|
|
|
{
|
|
|
- $modelName=preg_replace('/(s|x|ch|sh)$/','ses',lcfirst($this->getModelName()));
|
|
|
+ $modelName=preg_replace('/(s|x|ch|sh)$/','$1es',lcfirst($this->getModelName()));
|
|
|
$modelName=preg_replace('/y$/','ies',$modelName);
|
|
|
$modelName=preg_replace('/[cC]hild$/','children',$modelName);
|
|
|
if(preg_match('/[cC]hildren$/',$modelName)==0){
|