Skip to content

Commit

Permalink
Merge pull request #1 from stefandanaita/laravel5.4
Browse files Browse the repository at this point in the history
Support for Laravel 5.4
  • Loading branch information
stefandanaita committed Mar 8, 2017
2 parents 41e3cf6 + 11c5507 commit a77ad8a
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 a77ad8a

Please sign in to comment.