Skip to content

Commit 0be65dc

Browse files
committed
doc: add publish migration in installation
1 parent b29f7e3 commit 0be65dc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ You can install this package via composer using:
3636
composer require cesargb/laravel-magiclink
3737
```
3838

39-
You can then create the table by running the
40-
migrations:
39+
### Preparing the database
40+
41+
You need to publish the migration to create the `magic_links` table:
4142

4243
```bash
43-
php artisan migrate
44+
php artisan vendor:publish --provider="MagicLink\MagicLinkServiceProvider" --tag="migrations"
4445
```
4546

46-
Note: If you have the version 1 installed,
47-
[read this](https://github.com/cesargb/laravel-magiclink/blob/v1/README.md).
47+
After that, you need to run migrations.
48+
49+
```bash
50+
php artisan migrate
51+
```
4852

4953
## Use case
5054

0 commit comments

Comments
 (0)