Skip to content

Commit

Permalink
doc: add publish migration in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed May 20, 2023
1 parent b29f7e3 commit 0be65dc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ You can install this package via composer using:
composer require cesargb/laravel-magiclink
```

You can then create the table by running the
migrations:
### Preparing the database

You need to publish the migration to create the `magic_links` table:

```bash
php artisan migrate
php artisan vendor:publish --provider="MagicLink\MagicLinkServiceProvider" --tag="migrations"
```

Note: If you have the version 1 installed,
[read this](https://github.com/cesargb/laravel-magiclink/blob/v1/README.md).
After that, you need to run migrations.

```bash
php artisan migrate
```

## Use case

Expand Down

0 comments on commit 0be65dc

Please sign in to comment.