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(); }); }