Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns authored Dec 24, 2019
1 parent 2e9b7c0 commit abb315d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,7 @@ public function register()
*/
private function getProvider()
{
$app = $this->app;

$version = intval($app::VERSION);

switch ($version) {
case 4:
return new ServiceProviderLaravel4($app);

case 5:
return new ServiceProviderLaravel5($app);

default:
throw new RuntimeException('Your version of Laravel is not supported');
}
return new ServiceProviderLaravel5($this->app);
}

/**
Expand Down

0 comments on commit abb315d

Please sign in to comment.