protected function getRawAttributes(array $attributes = [])
    {
        if (! isset($this->definitions[$this->class][$this->name])) {
            throw new InvalidArgumentException("Unable to locate factory with name [{$this->name}] [{$this->class}].");
        }

        $definition = call_user_func(
            $this->definitions[$this->class][$this->name],
            $this->faker, $attributes
        );

        return $this->expandAttributes(
            array_merge($this->applyStates($definition, $attributes), $attributes)
        );
    }
protected function getRawAttributes(array $attributes = [])
    {
        if (! isset($this->definitions[$this->class][$this->name])) {
            throw new InvalidArgumentException("Unable to locate factory with name [{$this->name}] [{$this->class}].");
        }

        $definition = call_user_func(
            $this->definitions[$this->class][$this->name],
            $this->faker, $attributes
        );

        return $this->expandAttributes(
            array_merge($this->applyStates($definition, $attributes), $attributes)
        );
    }
protected function getRawAttributes ( array $ attributes = [ ] ) { if ( ! isset ( $ this -> definitions [ $ this -> class ] [ $ this -> name ] ) ) { throw new InvalidArgumentException ( "Unable to locate factory with name [{$this->name}] [{$this->class}]." ) ; } $ definition = call_user_func ( $ this -> definitions [ $ this -> class ] [ $ this -> name ] , $ this -> faker , $ attributes ) ; return $ this -> expandAttributes ( array_merge ( $ this -> applyStates ( $ definition , $ attributes ) , $ attributes ) ) ; }
Get a raw attributes array for the model.

@param  array  $attributes
@return mixed

@throws \InvalidArgumentException
Get a raw attributes array for the model .