From ceb3e991a869c50509850366077fa6eaf4f4be68 Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Tue, 27 Aug 2019 11:06:34 +0200 Subject: [PATCH] add check for type macro --- src/AuthCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AuthCommand.php b/src/AuthCommand.php index 64f165a..93d464b 100644 --- a/src/AuthCommand.php +++ b/src/AuthCommand.php @@ -46,6 +46,10 @@ class AuthCommand extends Command */ public function handle() { + if (static::hasMacro($this->argument('type'))) { + return call_user_func(static::$macros[$this->argument('type')], $this); + } + if (! in_array($this->argument('type'), ['bootstrap'])) { throw new InvalidArgumentException('Invalid preset.'); }