andrej-griniuk / laravel-refresh-and-seed-database
RefreshAndSeedDatabase trait
1.0.1
2018-11-27 01:41 UTC
Requires
- php: ^7.0
- laravel/framework: ~5.6
Requires (Dev)
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-11-27 14:51:37 UTC
README
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.