Skip to content
This repository was archived by the owner on Nov 21, 2022. It is now read-only.

Commit d91e86d

Browse files
authored
Merge pull request #25 from vahidalvandi/master
fix same problems in migration
2 parents ac5f7a1 + bcc481c commit d91e86d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Laravel Email Database Log can be installed via [composer](http://getcomposer.or
1111
```bash
1212
composer require shvetsgroup/laravel-email-database-log
1313
```
14+
for publish migration files
15+
```bash
16+
php artisan vendor:publish --tag=laravel-email-database-log-migration
17+
php artisan migrate
18+
```
1419

1520
## Step 2: Configuration
1621

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"illuminate/support": "~5.0|~6.0|~7.0|~8.0",
14-
"doctrine/dbal": "*"
14+
"doctrine/dbal": "^2.10"
1515
},
1616
"autoload": {
1717
"psr-0": {

src/ShvetsGroup/LaravelEmailDatabaseLog/LaravelEmailDatabaseLogServiceProvider.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ class LaravelEmailDatabaseLogServiceProvider extends EventServiceProvider
2626
public function boot()
2727
{
2828
parent::boot();
29-
30-
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
3129
}
30+
31+
32+
public function register()
33+
{
34+
$this->publishes([
35+
__DIR__ . '/../../database/migrations'=> database_path('migrations'),
36+
], 'laravel-email-database-log-migration');
37+
}
38+
3239
}

0 commit comments

Comments
 (0)