*/ protected $fillable = [ 'user_id', 'driver', 'driver_id', 'email', 'format', 'token', 'token_secret', 'refresh_token', 'expires_in', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'token', 'token_secret', 'refresh_token', ]; /** * The attributes that should be visible in serialization. * * @var array */ protected $visible = [ 'driver', 'email', 'format', ]; /** * Get the user record associated with the company. * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class); } }