Skip to content

Commit a3e11bf

Browse files
mixisLvlostincode
authored andcommitted
Updated version constraints for Laravel 6.0 (#15)
* Updated version constraints for Laravel 6.0 * studly_case() -> Str::studly()
1 parent 24ab929 commit a3e11bf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
}],
1616
"require": {
1717
"php": ">=5.5.9",
18-
"illuminate/support": "~5.0",
19-
"illuminate/routing": "~5.0"
18+
"illuminate/support": "~5.0|^6.0",
19+
"illuminate/routing": "~5.0|^6.0"
2020
},
2121
"autoload": {
2222
"psr-4": {

src/MandrillWebhookController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Http\Request;
66
use Illuminate\Routing\Controller;
7+
use Illuminate\Support\Str;
78
use Symfony\Component\HttpFoundation\Response;
89

910
class MandrillWebhookController extends Controller
@@ -25,7 +26,7 @@ public function handleWebHook(Request $request)
2526
if($eventName == 'undefined' && isset($event['type'])){
2627
$eventName = $event['type'];
2728
}
28-
$method = 'handle' . studly_case(str_replace('.', '_', $eventName));
29+
$method = 'handle' . Str::studly(str_replace('.', '_', $eventName));
2930

3031
if (method_exists($this, $method)) {
3132
$this->{$method}($event);

0 commit comments

Comments
 (0)