Skip to content

Commit 32e611e

Browse files
Merge pull request #78 from mycarrysun/laravel-6
Laravel 6.0 support
2 parents 1fd9d11 + ef10438 commit 32e611e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
],
1212
"require": {
1313
"php": ">=5.5.9",
14-
"illuminate/support": "^5.1",
15-
"illuminate/filesystem": "^5.1",
14+
"illuminate/support": "^5.1 || ^6.0",
15+
"illuminate/filesystem": "^5.1 || ^6.0",
1616
"doctrine/annotations": "~1.2",
1717
"phpdocumentor/reflection-docblock": "^3.1|^4.1"
1818
},

src/Action.php

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

33
namespace Dingo\Blueprint;
44

5+
use Illuminate\Support\Str;
56
use RuntimeException;
67
use ReflectionMethod;
78
use Illuminate\Support\Collection;
@@ -152,7 +153,7 @@ public function getUri()
152153
return;
153154
}
154155

155-
if (! starts_with($uri, '{?')) {
156+
if (! Str::startsWith($uri, '{?')) {
156157
$uri = '/'.$uri;
157158
}
158159

0 commit comments

Comments
 (0)