Skip to content

Commit

Permalink
Fix 5.1+ service binding issue #26
Browse files Browse the repository at this point in the history
  • Loading branch information
alaouy committed Mar 23, 2016
1 parent 024b064 commit a73a2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Alaouy/Youtube/YoutubeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function register()

//Laravel 5.1+ fix
if(floatval(Application::VERSION) >= 5.1){
$this->app->bind("youtube", null, true, function(){
$this->app->bind("youtube", function(){
return $this->app->make('Alaouy\Youtube\Youtube', [config('youtube.KEY')]);
});
}else{
Expand Down

0 comments on commit a73a2b0

Please sign in to comment.