public function create(array $overrides = [])
    {
        $factory = static::$factories[$this->table]['callback'];
        $data = [];

        for ($i = 0; $i < $this->times; $i++) {
            $values = $this->override($factory(\Faker\Factory::create($this->locale)), $overrides);

            $data[] = $this->insert($values);
        }

        if (count($data) === 1) {
            return $data[0];
        }

        return $data;
    }
public function create(array $overrides = [])
    {
        $factory = static::$factories[$this->table]['callback'];
        $data = [];

        for ($i = 0; $i < $this->times; $i++) {
            $values = $this->override($factory(\Faker\Factory::create($this->locale)), $overrides);

            $data[] = $this->insert($values);
        }

        if (count($data) === 1) {
            return $data[0];
        }

        return $data;
    }
public function create ( array $ overrides = [ ] ) { $ factory = static :: $ factories [ $ this -> table ] [ 'callback' ] ; $ data = [ ] ; for ( $ i = 0 ; $ i < $ this -> times ; $ i ++ ) { $ values = $ this -> override ( $ factory ( \ Faker \ Factory :: create ( $ this -> locale ) ) , $ overrides ) ; $ data [ ] = $ this -> insert ( $ values ) ; } if ( count ( $ data ) === 1 ) { return $ data [ 0 ] ; } return $ data ; }
Create the data.

@param array $overrides
@throws \Exception
@return \stdClass|array If only one item was inserted, an object will be returned.
Otherwise, an array of objects will be returned.
Create the data .