diff --git a/RouteResolver.php b/RouteResolver.php index 22a65c2..5a8ba7c 100644 --- a/RouteResolver.php +++ b/RouteResolver.php @@ -2,7 +2,6 @@ namespace Orchestra\Http; -use Illuminate\Support\Arr; use Illuminate\Support\NamespacedItemResolver; use Illuminate\Contracts\Foundation\Application; @@ -213,7 +212,7 @@ protected function prepareValidRoute($route, $item, $query, array $options) $appends = []; $mode = $this->mode(); - if (!! Arr::get($options, 'csrf', false)) { + if (!! ($options['csrf'] ?? false)) { $appends['_token'] = $this->getCsrfToken(); }