public function create($name, array $overrides = [])
    {
        for ($i = 0; $i < $this->getTimes(); $i++) {
            $entities[] = $this->persist($name, $overrides);
        }

        if (count($entities) > 1) {
            return Collection::make($entities);
        }

        return $entities[0];
    }
public function create($name, array $overrides = [])
    {
        for ($i = 0; $i < $this->getTimes(); $i++) {
            $entities[] = $this->persist($name, $overrides);
        }

        if (count($entities) > 1) {
            return Collection::make($entities);
        }

        return $entities[0];
    }
public function create ( $ name , array $ overrides = [ ] ) { for ( $ i = 0 ; $ i < $ this -> getTimes ( ) ; $ i ++ ) { $ entities [ ] = $ this -> persist ( $ name , $ overrides ) ; } if ( count ( $ entities ) > 1 ) { return Collection :: make ( $ entities ) ; } return $ entities [ 0 ] ; }
Build and persist a named entity.

@param  string $name
@param  array  $overrides
@return mixed
Build and persist a named entity .