This trait extends Laravel's RefreshDatabase trait functionality to seed the database after running migrations.
- Laravel 5.6+
composer require andrej-griniuk/laravel-refresh-and-seed-database
Add this trait to your Test
abstract class TestCase extends BaseTestCase
{
use RefreshAndSeedDatabase;
...
}
Copyright (c) 2016, Andrej Griniuk and licensed under The MIT License.