andrej-griniuk/laravel-refresh-and-seed-database

RefreshAndSeedDatabase trait

Downloads

11

Stars

0

Version

1.0.1

Build Status License

RefreshAndSeedDatabase trait for Laravel

This trait extends Laravel's RefreshDatabase trait functionality to seed the database after running migrations.

Requirements

  • Laravel 5.6+

Installation

composer require andrej-griniuk/laravel-refresh-and-seed-database

Usage

Add this trait to your Test

abstract class TestCase extends BaseTestCase
{
    use RefreshAndSeedDatabase;
    
    ...
}

License

Copyright (c) 2016, Andrej Griniuk and licensed under The MIT License.

andrej-griniuk

Author

andrej-griniuk