| Total Complexity | 1 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class SocialiteUser extends BaseModel implements Transformable |
||
| 23 | { |
||
| 24 | use TransformableTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Indicates if the model should be auto set user_id. |
||
| 28 | * |
||
| 29 | * @var bool |
||
| 30 | */ |
||
| 31 | protected $autoUserId = true; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Indicates if the model should be recorded ips. |
||
| 35 | * |
||
| 36 | * @var bool |
||
| 37 | */ |
||
| 38 | protected $ips = true; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Indicates if the model should be recorded users. |
||
| 42 | * |
||
| 43 | * @var bool |
||
| 44 | */ |
||
| 45 | protected $update_users = true; |
||
| 46 | |||
| 47 | protected $primaryKey = 'socialite_user_id'; |
||
| 48 | |||
| 49 | protected $fillable = [ |
||
| 50 | 'user_id', |
||
| 51 | 'provider', |
||
| 52 | 'provider_user_id', |
||
| 53 | 'oauth_data', |
||
| 54 | 'expires_at', |
||
| 55 | ]; |
||
| 56 | |||
| 57 | // Fields to be converted to Carbon object automatically |
||
| 58 | protected $dates = []; |
||
| 59 | |||
| 60 | protected $guarded = []; |
||
| 61 | |||
| 62 | public function user() |
||
| 67 |