-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathAuthCode.php
50 lines (43 loc) · 906 Bytes
/
AuthCode.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace Sysvale\Mongodb\Passport;
use Jenssegers\Mongodb\Eloquent\Model;
class AuthCode extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'oauth_auth_codes';
/**
* The guarded attributes on the model.
*
* @var array
*/
protected $guarded = [];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'revoked' => 'bool',
];
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = [
'expires_at',
];
/**
* Get the client that owns the authentication code.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function client()
{
return $this->hasMany(Client::class);
}
}