Skip to content

Commit 8d8b8ec

Browse files
committed
update readme
1 parent cbcaf6c commit 8d8b8ec

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
11
# artisan-migrator
22

3-
Laravel migration only, built for separate project in case you are not using laravel as main framework but love to using its database migration,t
3+
Laravel migration only, built for separate project in case you are not using laravel as main framework but love to using its database migration,t
44
you may run `php artisan make:migration` or `php artisan migrate` within this package.
55

66
## Installation
7-
- Just [Download zip](https://github.com/therour/artisan-migrator/archive/master.zip) **or**
8-
- clone the repository to create this migration project `git clone [email protected]:therour/artisan-migrator.git`
7+
- Just [Download zip](https://github.com/therour/db-migrator/archive/master.zip) **or**
8+
- clone the repository to create this migration project `git clone [email protected]:therour/db-migrator.git`
99

1010
## Configuration
11-
- you should add configuration to `config.php` if you are not using `mysql` connection. (currently only providing default configuration for mysql)
12-
- you may use `.env` just by creating the file.
11+
- you should add configuration to `config.php` or you may use `.env` just by creating the file.
12+
```yaml
13+
DB_CONNECTION=mysql
14+
DB_HOST=127.0.0.1
15+
DB_PORT=3306
16+
DB_DATABASE=test
17+
DB_USERNAME=root
18+
DB_PASSWORD=
19+
```
20+
21+
## Usage
22+
23+
Create a migration file by running command
24+
`php artisan make:migration create_users_table`
25+
and then you can edit the migration file inside `database` folder.
26+
27+
*NB:* see the [documentation by laravel](https://laravel.com/docs/6.x/migrations)
1328

1429
## Available commands
1530
run `php artisan list` to show all available commands.
1631
- db
1732
* `php artisan db:seed` Seed the database with records
1833
* `php artisan db:wipe` Drop all tables, views, and types
19-
34+
2035
- make
2136
* `php artisan make:migration` Create a new migration file
2237
* `php artisan make:seeder` Create a new seeder class
23-
38+
2439
- migrate
2540
* `php artisan migrate:fresh` Drop all tables and re-run all migrations
2641
* `php artisan migrate:install` Create the migration repository

0 commit comments

Comments
 (0)