| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Module\OAuth\Models;
- use Illuminate\Database\Eloquent\Model;
- /**
- * App\Module\OAuth\Models\OAuthClient
- *
- * field start
- * @property int $id
- * @property string $name 客户端名称
- * @property string $client_id 客户端ID
- * @property string $client_secret 客户端密钥
- * @property string $redirect_uri 回调地址
- * @property object|array $grant_types 授权类型
- * @property object|array $scope 权限范围
- * @property int $user_id 关联用户ID
- * @property \Carbon\Carbon $created_at
- * @property \Carbon\Carbon $updated_at
- * field end
- */
- class OAuthClient extends Model
- {
- protected $table = 'oauth_clients';
- // attrlist start
- protected $fillable = [
- 'id',
- 'name',
- 'client_id',
- 'client_secret',
- 'redirect_uri',
- 'grant_types',
- 'scope',
- 'user_id',
- ];
- // attrlist end
- protected $casts = [
- 'grant_types' => 'array',
- 'scope' => 'array',
- ];
- }
|