https://github.com/atomjoy/migratio
Load migrations from subdirectories in Laravel.
https://github.com/atomjoy/migratio
Last synced: 11 months ago
JSON representation
Load migrations from subdirectories in Laravel.
- Host: GitHub
- URL: https://github.com/atomjoy/migratio
- Owner: atomjoy
- Created: 2023-06-13T17:27:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T17:29:49.000Z (about 3 years ago)
- Last Synced: 2025-06-07T21:44:35.314Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Migratio Laravel
Load migrations from subdirectories in Laravel.
## Install
```sh
composer create-project laravel/laravel:^10.0 vue-app
cd vue-app
composer require atomjoy/migratio
```
### Make migration
```sh
php artisan make:migration create_posts_table --path=/database/migrations/posts
```
### Migrate tables
```sh
# all subdirectories
php artisan migrate
# from single subdir
php artisan migrate --path=/database/migrations/posts
```
### Run app
```sh
php artisan serve --host=localhost --port=8000
```