src/FactoryBuilder.php
/**
     * Create a collection of models.
     *
     * @param  array  $attributes
     * @return mixed
     */
Create a collection of models.
@param  array  $attributes
@return mixed
Create a collection of models . @param array $attributes @return mixed
public function make(array $attributes = [])
    {
        if ($this->amount === null) {
            return $this->makeInstance($attributes);
        } else {
            $results = [];
            for ($i = 0; $i < $this->amount; $i++) {
                $results[] = $this->makeInstance($attributes);
            }
            return new Collection($results);
        }
    }
public function make ( array $ attributes = [ ] ) { if ( $ this -> amount === null ) { return $ this -> makeInstance ( $ attributes ) ; } else { $ results = [ ] ; for ( $ i = 0 ; $ i < $ this -> amount ; $ i ++ ) { $ results [ ] = $ this -> makeInstance ( $ attributes ) ; } return new Collection ( $ results ) ; } }
Create a collection of models.
Create a collection of models .