diff --git a/README.md b/README.md index 6100a47..76b9074 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ Installation ------------ 1. Either run `composer require oriceon/toastr-5-laravel` or add `"oriceon/toastr-5-laravel": "dev-master"` to the `require` key in `composer.json` and run `composer install` -2. Add `'Kamaln7\Toastr\ToastrServiceProvider',` to the `providers` key in `config/app.php` -3. Add `'Toastr' => 'Kamaln7\Toastr\Facades\Toastr',` to the `aliases` key in `config/app.php` +2. Add `'Kamaln7\Toastr\ToastrServiceProvider',` to the `providers` key in `config/app.php` (optional for Laravel 5.5) +3. Add `'Toastr' => 'Kamaln7\Toastr\Facades\Toastr',` to the `aliases` key in `config/app.php` (optional for Laravel 5.5) Usage ----- diff --git a/composer.json b/composer.json index 2138c71..0239e38 100644 --- a/composer.json +++ b/composer.json @@ -24,5 +24,15 @@ "Kamaln7\\Toastr\\": "src/" } }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "extra": { + "laravel": { + "providers": [ + "Kamaln7\\Toastr\\ToastrServiceProvider" + ], + "aliases": { + "Toastr": "Kamaln7\\Toastr\\Facades\\Toastr" + } + } + }, }