From 4c656cc71df32f5deaf2b01dbf13f9aacb7e3e68 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 6 Jan 2025 15:08:47 +0100 Subject: [PATCH] Remove duplicate config, fix ->can() (#1650) --- src/Console/MetaCommand.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Console/MetaCommand.php b/src/Console/MetaCommand.php index a5a15f5..e34270e 100644 --- a/src/Console/MetaCommand.php +++ b/src/Console/MetaCommand.php @@ -232,18 +232,14 @@ class MetaCommand extends Command 'argumentSet' => 'auth', ], [ - 'class' => ['\Illuminate\Support\Facades\Route', '\Illuminate\Support\Facades\Auth'], + 'class' => ['\Illuminate\Support\Facades\Route', '\Illuminate\Support\Facades\Auth', 'Illuminate\Foundation\Auth\Access\Authorizable'], 'method' => ['can', 'cannot'], 'argumentSet' => 'auth', ], - [ - 'method' => 'config', - 'argumentSet' => 'configs', - ], [ 'class' => ['\Illuminate\Config\Repository', '\Illuminate\Support\Facades\Config'], 'method' => [ - 'get', +// 'get', // config() and Config::Get() are added with return type hints already 'getMany', 'set', 'string',