1 | <?php |
||
17 | class OAuthIdentity extends Eloquent |
||
18 | { |
||
19 | /** |
||
20 | * The attributes that are mass assignable. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $fillable = [ |
||
25 | 'id', 'provider_user_id', 'provider', 'access_token', 'user_id', 'avatar', 'name', 'nickname', |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * The attributes that should be hidden for arrays. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $hidden = []; |
||
34 | |||
35 | /** |
||
36 | * The table associated with the model. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $table = 'oauth_identities'; |
||
41 | protected static $configuredTable = 'oauth_identities'; |
||
42 | |||
43 | public static function configureTable($table) |
||
47 | |||
48 | public function getTable() |
||
52 | |||
53 | /** |
||
54 | * Get the user that owns the oauth identity. |
||
55 | */ |
||
56 | public function user() |
||
60 | } |
||
61 |