Skip to content

Commit

Permalink
Fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Mar 29, 2019
1 parent bc74cb4 commit d286faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PassportProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Support\Arr;
use Illuminate\Http\Response;
use Laravel\Passport\Passport;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Failed;
use Illuminate\Auth\Events\Logout;
Expand Down Expand Up @@ -138,7 +139,7 @@ protected function getAccessToken()
*/
protected function getClientCredentials(): array
{
$client = DB::table('oauth_clients')
$client = Passport::client()
->where('password_client', true)
->where('revoked', false)
->first();
Expand Down

0 comments on commit d286faa

Please sign in to comment.