From 11c55077d700a5f0b5a17733e763db64ee31ce98 Mon Sep 17 00:00:00 2001 From: Stefan Danaita Date: Wed, 8 Mar 2017 19:45:10 +0000 Subject: [PATCH] Support for Laravel 5.4 --- composer.json | 2 +- src/CsvValidatorServiceProvider.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8bffbe4..5b880c7 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "A CSV Validator based on Laravel's built-in Validator", "type": "library", "require": { - "laravel/framework": "~5.0" + "laravel/framework": "5.4.*" }, "license": "MIT", "support": { diff --git a/src/CsvValidatorServiceProvider.php b/src/CsvValidatorServiceProvider.php index 9a22b11..6b62a0a 100755 --- a/src/CsvValidatorServiceProvider.php +++ b/src/CsvValidatorServiceProvider.php @@ -35,8 +35,8 @@ public function boot() */ public function register() { - $this->app['csv-validator'] = $this->app->share(function ($app) { - return new CsvValidator; + $this->app->singleton('csv-validator', function ($app) { + return new CsvValidator(); }); }