Package Data | |
---|---|
Maintainer Username: | lbadger |
Package Create Date: | 2017-09-11 |
Package Last Update: | 2019-12-02 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2025-02-07 15:06:53 |
Package Statistics | |
---|---|
Total Downloads: | 1,499 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 1 |
Creating data migrations for Laravel. This keeps data out of migrations and leaves it for schema changes only.
composer require lbadger/illuminate-data-migrations
Create a folder called "data_migrations" in the /database folder
'data-migrations' => 'data_migrations',
Add these to the 'providers' array
\Lbadger\Database\Providers\ArtisanServiceProvider::class,
\Lbadger\Database\Providers\DataMigrationServiceProvider::class,
$app['config']['database.data-migrations'] = 'data_migrations';
$app->register(\Lbadger\Database\Providers\ArtisanServiceProvider::class);
$app->register(\Lbadger\Database\Providers\DataMigrationServiceProvider::class);
If you would like to use custom stubs, you need to put your stub in the database/stubs directory with the suffix of .stub