diff --git a/README.md b/README.md index 3883a2f..64d3cc0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 3a85997..8bcca43 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,6 @@ } ], "minimum-stability": "stable", - "autoload": { "psr-4": { "Swis\\LaravelFulltext\\": "src/" @@ -30,5 +29,12 @@ "psr-4": { "Tests\\": "tests/" } + }, + "extra": { + "laravel": { + "providers": [ + "Swis\\LaravelFulltext\\FulltextServiceProvider" + ] + } } }