From 2e00354016557f5c638a33bc0faddf131cbcc130 Mon Sep 17 00:00:00 2001 From: Hui Yang Date: Sat, 23 Jan 2021 00:53:20 +0800 Subject: [PATCH 1/2] Allow illuminate/support ^8.0 or ^9.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 400965f..ed77b59 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "minimum-stability": "dev", "require": { "php": ">=7.2.0", - "illuminate/support": "^6.0 | ^7.0" + "illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0" }, "autoload": { "psr-4": { From 4ba638d9537835466f076d13beea65e6b69c39cf Mon Sep 17 00:00:00 2001 From: Hui Yang Date: Sat, 23 Jan 2021 01:07:23 +0800 Subject: [PATCH 2/2] Added autoload for provider --- README.md | 2 +- composer.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d8d8ea..acb1cd0 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ And then include the service provider within `app/config/app.php`. At last you need to publish and run the migration. ```bash -php artisan vendor:publish +php artisan vendor:publish --provider="Ghanem\Reportable\ReportableServiceProvider" ``` and ```bash diff --git a/composer.json b/composer.json index ed77b59..8ea194f 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,13 @@ "php": ">=7.2.0", "illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0" }, + "extra": { + "laravel": { + "providers": [ + "Ghanem\\Reportable\\ReportableServiceProvider" + ] + } + }, "autoload": { "psr-4": { "Ghanem\\Reportable\\": "src/"