Looking to hire Laravel developers? Try LaraJobs

laravel-refresh-and-seed-database maintained by andrej-griniuk

Description
RefreshAndSeedDatabase trait
Last update
2018/11/27 02:45 (dev-master)
License
Links
Downloads
15

Comments
comments powered by Disqus

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.