diff --git a/composer.json b/composer.json index 74ba1b6..bdf75f6 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "anchu/ftp", - "description": "A simple Laravel 4/5 ftp service provider", - "keywords": ["ftp", "laravel", "l4", "l5", "service provider"], + "description": "A simple Laravel 7 ftp service provider", + "keywords": ["ftp", "laravel", "l5", "l6","l7", "service provider"], "license": "MIT", "authors": [{ "name": "Harish Anchu", @@ -9,7 +9,7 @@ }], "require": { "php": ">=5.4.0", - "illuminate/support": "5.x" + "illuminate/support": "^5.0|^6.0|^7.0" }, "autoload": { "psr-0": { @@ -24,4 +24,4 @@ } }, "minimum-stability": "dev" -} \ No newline at end of file +} diff --git a/src/Anchu/Ftp/FtpManager.php b/src/Anchu/Ftp/FtpManager.php index 9fd79c6..8e03bbe 100644 --- a/src/Anchu/Ftp/FtpManager.php +++ b/src/Anchu/Ftp/FtpManager.php @@ -1,5 +1,7 @@ app['config']['ftp.connections']; - if (is_null($config = array_get($connections, $name))) + if (is_null($config = Arr::get($connections, $name))) { throw new \InvalidArgumentException("Ftp [$name] not configured."); }