Skip to content

Commit 7db8203

Browse files
committed
Updated migration file and updated readme
1 parent 193e226 commit 7db8203

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ First, pull in the package through Composer.
1616
composer require codebyray/laravel-review-rateable
1717
```
1818

19-
And then include the service provider within `app/config/app.php`.
19+
And then include the service provider within `app/config/app.php`. Note: If you are running Laravel 5.5+ this will be auto loaded for you.
2020

2121
```php
2222
'providers' => [
23-
CodebyRay\ReviewRateable\ReviewRateableServiceProvider::class
23+
Codebyray\ReviewRateable\ReviewRateableServiceProvider::class
2424
];
2525
```
2626

2727
At last you need to publish and run the migration.
2828
```
29-
php artisan vendor:publish --provider="CodebyRay\ReviewRateable\ReviewRateableServiceProvider"
29+
php artisan vendor:publish --provider="Codebyray\ReviewRateable\ReviewRateableServiceProvider"
3030
```
3131

3232
Run the migration

src/ReviewRateableServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class ReviewRateableServiceProvider extends ServiceProvider
1313
*/
1414
public function boot()
1515
{
16-
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
16+
$this->publishes([
17+
__DIR__.'/../database/migrations/' => database_path('migrations')
18+
], 'migrations');
1719
}
1820

1921
/**

0 commit comments

Comments
 (0)