Skip to content

Commit

Permalink
Add getScopesAttribute and getScopesAttribute methods (#1709)
Browse files Browse the repository at this point in the history
* Add getScopesAttribute and setScopesAttribute methods

* Update Client.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
uintaam and taylorotwell authored Jan 17, 2024
1 parent 09305ed commit 27a4f34
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,27 @@ public function getGrantTypesAttribute()
return $this->attributes['grant_types'] ?? null;
}

/**
* Get the scopes for the client.
*
* @return array|null
*/
public function getScopesAttribute()
{
return $this->attributes['scopes'] ?? null;
}

/**
* Set the scopes for the client.
*
* @param array|null $scopes
* @return void
*/
public function setScopesAttribute(?array $scopes)
{
$this->attributes['scopes'] = $scopes;
}

/**
* The temporary non-hashed client secret.
*
Expand Down

0 comments on commit 27a4f34

Please sign in to comment.