Skip to content

Commit d33c3af

Browse files
Merge pull request #94 from miteyema/patch-1
Fixes [Issue #93] semantic major version of Laravel
2 parents de0c848 + 966ce0c commit d33c3af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CloudinaryServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ protected function bootComponents()
101101

102102
protected function getComponentName($componentName)
103103
{
104-
if( (int)$this->app->version()[0] <= 6 ) {
104+
$version = explode(".", $this->app->version());
105+
if( (int)$version[0] <= 6 ) {
105106
$componentName = str_replace("-", "_", $componentName);
106107
}
107108

0 commit comments

Comments
 (0)