Skip to content

Commit e1a6514

Browse files
authored
Add getGrantTypesAttribute method (#1705)
1 parent eb78ec6 commit e1a6514

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Client.php

+10
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ public function tokens()
105105
return $this->hasMany(Passport::tokenModel(), 'client_id');
106106
}
107107

108+
/**
109+
* Get the grant types the client can use.
110+
*
111+
* @return array|null
112+
*/
113+
public function getGrantTypesAttribute()
114+
{
115+
return $this->attributes['grant_types'] ?? null;
116+
}
117+
108118
/**
109119
* The temporary non-hashed client secret.
110120
*

0 commit comments

Comments
 (0)