Skip to content

Commit 7168c39

Browse files
Merge pull request #31 from pyaehein/master
Passport 8 support
2 parents a881926 + fda9c8a commit 7168c39

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class User extends Authenticatable
3636

3737
### Laravel version Compatibility
3838

39-
Laravel | Passport | Package
40-
:---------|:---------------------------|:----------
41-
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
42-
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
43-
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x | 1.2.x
39+
Laravel | Passport | Package
40+
:---------|:-----------------------------|:----------
41+
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
42+
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
43+
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x
4444

4545
And add the service provider in `config/app.php`:
4646

Diff for: src/Passport/Client.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,15 @@ public function firstParty()
7878
public function skipsAuthorization()
7979
{
8080
return false;
81-
}
81+
}
82+
83+
/**
84+
* Determine if the client is a confidential client.
85+
*
86+
* @return bool
87+
*/
88+
public function confidential()
89+
{
90+
return ! empty($this->secret);
91+
}
8292
}

0 commit comments

Comments
 (0)