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

1.0.1 2018-11-27 01:41 UTC

This package is auto-updated.

Last update: 2024-05-27 13:44:04 UTC


README

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.