Skip to content

Commit

Permalink
Add documentation on using model factories.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 21, 2015
1 parent c34db97 commit 59a623b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ $this->artisan('migrate', [
]);
```

### Using Model Factories

Testbench include `withFactories()` method to allow you to register custom model factory path for your test suite.

```php
$this->withFactories(__DIR__.'/factories');
```

## Example

To see a working example of testbench including how to set your configuration, check the file:
Expand Down

0 comments on commit 59a623b

Please sign in to comment.