Skip to content

Commit

Permalink
Merge pull request #90 from ianterrell/master
Browse files Browse the repository at this point in the history
Expose instance level define through facade.
  • Loading branch information
scottrobertson committed Jul 21, 2014
2 parents f3be634 + 1f64209 commit b19e04e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Facade/FactoryMuffin.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ public static function create($model, $attr = array())
{
return static::fmInstance()->create($model, $attr);
}

/**
* Define a new model factory
*
* @param string $model Model class name.
* @param array $definition Array with definition of attributes.
*
* @return void
*/
public static function define($model, array $definition = array())
{
static::fmInstance()->define($model, $definition);
}

/**
* Return an instance of the model, which is
Expand Down

0 comments on commit b19e04e

Please sign in to comment.