| @@ 66-77 (lines=12) @@ | ||
| 63 | * scaffolds api authentication with laravel passport |
|
| 64 | * @return bool |
|
| 65 | */ |
|
| 66 | public function scaffold() |
|
| 67 | { |
|
| 68 | if (!class_exists("Laravel\Passport\Client")) { |
|
| 69 | $this->installPackage('laravel/passport'); |
|
| 70 | } |
|
| 71 | ||
| 72 | $this->runCommands($this->commands); |
|
| 73 | ||
| 74 | $this->copyFiles(); |
|
| 75 | ||
| 76 | return true; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| @@ 62-74 (lines=13) @@ | ||
| 59 | * scaffolds api authentication with tymon-jwt |
|
| 60 | * @return bool |
|
| 61 | */ |
|
| 62 | public function scaffold() |
|
| 63 | { |
|
| 64 | if (!class_exists('Tymon\JWTAuth\Claims\Subject')) { |
|
| 65 | $this->installPackage('tymon/jwt-auth ^1.0.0-rc.3'); |
|
| 66 | } |
|
| 67 | ||
| 68 | $this->runCommands($this->commands); |
|
| 69 | ||
| 70 | $this->copyFiles(); |
|
| 71 | ||
| 72 | return true; |
|
| 73 | } |
|
| 74 | } |
|
| 75 | ||