Skip to content

Commit

Permalink
fix a few bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 6, 2016
1 parent abbefe5 commit 242f52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function define($class, callable $attributes, $name = 'default')
*/
public function state($class, $state, callable $attributes)
{
$this->modifiers[$class][$state] = $attributes;
$this->states[$class][$state] = $attributes;
}

/**
Expand Down Expand Up @@ -199,7 +199,7 @@ public function raw($class, array $attributes = [], $name = 'default')
*/
public function of($class, $name = 'default')
{
return new FactoryBuilder($class, $name, $this->definitions, $this->faker, $this->states);
return new FactoryBuilder($class, $name, $this->definitions, $this->states, $this->faker);
}

/**
Expand Down

0 comments on commit 242f52f

Please sign in to comment.