laravel/laravel — pull request #803 by joecwallace (2012-06-12 03:45:26+00:00)
Title: Database seeds

This pull request is an extension of the discussion on [pull request #787](https://github.com/laravel/laravel/pull/787). It also follows on from [issue #702](https://github.com/laravel/laravel/issues/702).

The migrations folder was moved from ``` (:bundle)/migrations ``` to ``` (:bundle)/db/migrations ```. (This includes ``` application ```.) Additionally, a ``` (:bundle)/db/seeds ``` directory was added.

In the ``` seeds ``` directory, classes may be created to seed the database, like so:

```php

'admin', ...));
}
}

```

If the seed is part of a bundle - in order to avoid naming conflicts - the class is prefixed by the bundle name, as with tasks. So, the ``` roles ``` seed of the ``` admin ``` bundle would look like this:

```php