Skip to content

Commit 898b540

Browse files
authored
Merge pull request #19 from repat/master
Allow Laravel 6 & 7
2 parents be50b05 + c5e5ca5 commit 898b540

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=5.5.9",
14-
"illuminate/support": "~5.0"
14+
"illuminate/support": "~5.0 | ^6.0 | ^7.0"
1515
},
1616
"autoload": {
1717
"files": [

src/ServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Torann\LaravelAsana;
44

5+
use Illuminate\Support\Str;
6+
57
class ServiceProvider extends \Illuminate\Support\ServiceProvider
68
{
79
/**
@@ -65,7 +67,7 @@ public function registerResources()
6567
*/
6668
protected function isLumen()
6769
{
68-
return str_contains($this->app->version(), 'Lumen') === true;
70+
return Str::contains($this->app->version(), 'Lumen') === true;
6971
}
7072

7173
/**

0 commit comments

Comments
 (0)