diff --git a/README.md b/README.md index 5a3b12f..e333236 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,11 @@ class User extends Authenticatable ### Laravel version Compatibility - Laravel | Passport | Package -:---------|:---------------------------|:---------- - 5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x - 5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x - 6.x | 4.0.x, 5.0.x, 6.0.x, 7.x | 1.2.x + Laravel | Passport | Package +:---------|:-----------------------------|:---------- + 5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x + 5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x + 6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x And add the service provider in `config/app.php`: diff --git a/src/Passport/Client.php b/src/Passport/Client.php index 9e07f07..3be09de 100644 --- a/src/Passport/Client.php +++ b/src/Passport/Client.php @@ -78,5 +78,15 @@ public function firstParty() public function skipsAuthorization() { return false; - } + } + + /** + * Determine if the client is a confidential client. + * + * @return bool + */ + public function confidential() + { + return ! empty($this->secret); + } }