Skip to content

Commit bc527f3

Browse files
author
Andrey Helldar
committed
Fixed route methods hiding
1 parent 66920a7 commit bc527f3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require": {
1818
"php": "^7.2",
19-
"andrey-helldar/support": "^1.22",
19+
"andrey-helldar/support": "^1.24",
2020
"doctrine/annotations": "^1.0",
2121
"illuminate/routing": "^5.0|^6.0|^7.0|^8.0",
2222
"illuminate/support": "^5.0|^6.0|^7.0|^8.0"

src/Models/Route.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Helldar\LaravelRoutesCore\Models;
44

55
use Helldar\LaravelRoutesCore\Facades\Annotation;
6+
use Helldar\Support\Facades\Arr as ArrHelper;
67
use Helldar\Support\Facades\Http;
78
use Illuminate\Contracts\Support\Arrayable;
89
use Illuminate\Routing\Route as IlluminateRoute;
@@ -66,8 +67,8 @@ public function getPriority(): int
6667
public function getMethods(): array
6768
{
6869
return array_values(array_diff(
69-
$this->route->methods(),
70-
$this->hide_methods
70+
ArrHelper::map($this->route->methods(), 'mb_strtoupper'),
71+
ArrHelper::map($this->hide_methods, 'mb_strtoupper')
7172
));
7273
}
7374

0 commit comments

Comments
 (0)