Skip to content

Commit

Permalink
Merge pull request #94 from miteyema/patch-1
Browse files Browse the repository at this point in the history
Fixes [Issue #93] semantic major version of Laravel
  • Loading branch information
unicodeveloper authored Oct 11, 2023
2 parents de0c848 + 966ce0c commit d33c3af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CloudinaryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ protected function bootComponents()

protected function getComponentName($componentName)
{
if( (int)$this->app->version()[0] <= 6 ) {
$version = explode(".", $this->app->version());
if( (int)$version[0] <= 6 ) {
$componentName = str_replace("-", "_", $componentName);
}

Expand Down

0 comments on commit d33c3af

Please sign in to comment.