wellingtoncarneirobarbosa / laravel-custom-migrations-paths
为您的Laravel迁移创建自定义路径
dev-master
2022-06-17 06:59 UTC
Requires
- illuminate/support: ^9.17
This package is auto-updated.
Last update: 2024-09-17 11:40:24 UTC
README
使用自定义迁移路径,而不是在Laravel项目中使用单个文件存放所有迁移
安装
-
安装包
composer require wellingtoncarneirobarbosa/laravel-custom-migrations-paths -
发布配置
php artisan vendor:publish --tag=custom-migrations-paths
完成。
如何使用?
只需将自定义迁移路径添加到配置文件 config/custom_migrations.php
如果您使用的是默认路径 database/migrations,则无需进行任何操作。
本包支持:database/migrations/users/create_users_table.php
本包不支持:database/migrations/users/create/create_users.php(我打算稍后添加此功能)