From ed639f4256b3a6f8b0f3d4a622471cc40a24435d Mon Sep 17 00:00:00 2001 From: Lucas Mesquita Borges Date: Thu, 30 Apr 2020 12:08:03 -0300 Subject: [PATCH 1/2] Add support for laravel 5.7 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3759b75..c7a228a 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "type": "library", "require": { "php": "^7.1.3", - "laravel/framework": "^5.6" + "laravel/framework": "^5.6|^5.7" }, "license": "MIT", "authors": [ From dc48aabab8a55f44f168bbb794c4958556140459 Mon Sep 17 00:00:00 2001 From: Lucas Mesquita Borges Date: Thu, 30 Apr 2020 12:09:33 -0300 Subject: [PATCH 2/2] Update README with Laravel official support --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6565f5..3a98f24 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,11 @@ specific driver(s) of your choosing. This __will override__, at runtime, any `default` database connection values for `host`, `port`, `username`, `password`, and `database` +> Laravel 5.8+ supports Database URL config officially. See [Laravel Database Config](https://laravel.com/docs/5.8/database#configuration). + ## Requirements -(package will likely work with prior versions of Laravel and PHP but is untested) - PHP >= 7.1.3 -- Laravel >= 5.6 +- Laravel 5.6 or 5.7 ## Installation `$ composer require rootinc/laravel-db-url`