From 45a5e69c959d0a1b02d43e290bf29ce9e1e7b567 Mon Sep 17 00:00:00 2001 From: Clayton Carter Date: Mon, 25 Sep 2017 14:52:27 -0400 Subject: [PATCH] add support for Laravel 5.5 --- README.md | 3 ++- composer.json | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b2423d7..aa627d9 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ In order to install this package, add `neoxia/laravel-csv-response` in `composer }, ``` -And add the service provider in `config/app.php`. +As of Laravel 5.5, this package will be automatically discovered and registered. +For older version of Laravel, add the service provider in `config/app.php`. ```PHP Neoxia\Routing\ResponseFactoryServiceProvider::class, diff --git a/composer.json b/composer.json index 126a05f..fc878e1 100644 --- a/composer.json +++ b/composer.json @@ -4,8 +4,8 @@ "description": "Add a CSV response type to Laravel", "require": { "php": ">=5.5.9", - "illuminate/routing": "5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*" + "illuminate/routing": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", + "illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*" }, "require-dev": { "phpunit/phpunit": "4.8.*", @@ -16,5 +16,12 @@ "psr-4": { "Neoxia\\": "src/Neoxia/" } + }, + "extra": { + "laravel": { + "providers": [ + "Neoxia\\Routing\\ResponseFactoryServiceProvider" + ] + } } }