src/FactoryMuffin.php
public function seed($times, $name, array $attr = [])
    {
        $seeds = [];

        for ($i = 0; $i < $times; $i++) {
            $seeds[] = $this->create($name, $attr);
        }

        return $seeds;
    }
public function seed($times, $name, array $attr = [])
    {
        $seeds = [];

        for ($i = 0; $i < $times; $i++) {
            $seeds[] = $this->create($name, $attr);
        }

        return $seeds;
    }
public function seed ( $ times , $ name , array $ attr = [ ] ) { $ seeds = [ ] ; for ( $ i = 0 ; $ i < $ times ; $ i ++ ) { $ seeds [ ] = $ this -> create ( $ name , $ attr ) ; } return $ seeds ; }
Creates and saves multiple versions of a model.

Under the hood, we're calling the create method over and over.

@param int    $times The number of models to create.
@param string $name  The model definition name.
@param array  $attr  The model attributes.

@return object[]
Creates and saves multiple versions of a model .