Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit 092c94d

Browse files
authored
Merge pull request laravel#16 from Naoray/master
Add macro check on ui:auth command
2 parents 7ea4b47 + ceb3e99 commit 092c94d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AuthCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class AuthCommand extends Command
4646
*/
4747
public function handle()
4848
{
49+
if (static::hasMacro($this->argument('type'))) {
50+
return call_user_func(static::$macros[$this->argument('type')], $this);
51+
}
52+
4953
if (! in_array($this->argument('type'), ['bootstrap'])) {
5054
throw new InvalidArgumentException('Invalid preset.');
5155
}

0 commit comments

Comments
 (0)