Skip to content

Commit

Permalink
Merge pull request #5 from swisnl/feature-package-discovery
Browse files Browse the repository at this point in the history
Add package discovery to composer.json
  • Loading branch information
bbrala authored May 9, 2018
2 parents bda8884 + fb2a511 commit 051568a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ This package creates a MySQL fulltext index for models and enables you to search
## Installation

1. Install with composer ``composer require swisnl/laravel-fulltext``.
2. Install service provider ``Swis\LaravelFulltext\FulltextServiceProvider::class,`` in ``config/app.php``
3. Publish migrations and config ``php artisan vendor:publish --tag=laravel-fulltext``
4. Migrate the database ``php artisan migrate``
2. Publish migrations and config ``php artisan vendor:publish --tag=laravel-fulltext``
3. Migrate the database ``php artisan migrate``

> Only if you are on Laravel 5.4 or lower will you need to install the service provider ``Swis\LaravelFulltext\FulltextServiceProvider::class,`` in ``config/app.php``

## Usage
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
}
],
"minimum-stability": "stable",

"autoload": {
"psr-4": {
"Swis\\LaravelFulltext\\": "src/"
Expand All @@ -30,5 +29,12 @@
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"Swis\\LaravelFulltext\\FulltextServiceProvider"
]
}
}
}

0 comments on commit 051568a

Please sign in to comment.