Skip to content

Commit

Permalink
Support for Laravel 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandanaita committed Mar 8, 2017
1 parent f3fa633 commit 11c5507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/CsvValidatorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down

0 comments on commit 11c5507

Please sign in to comment.