Skip to content

Commit

Permalink
Merge pull request #16 from Naoray/master
Browse files Browse the repository at this point in the history
Add macro check on ui:auth command
  • Loading branch information
taylorotwell authored Aug 27, 2019
2 parents 7ea4b47 + ceb3e99 commit 092c94d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AuthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 092c94d

Please sign in to comment.