/laravel-refresh-and-seed-database

RefreshAndSeedDatabase trait for Laravel

Primary LanguagePHPMIT LicenseMIT

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.