'int', 'is_active' => 'int', 'user_id' => 'int', 'disable_footer_code' => 'int' ]; protected $hidden = [ 'password' ]; protected $fillable = [ 'name', 'address', 'country_id', 'phone', 'fax', 'email', 'website', 'logo', 'ctype', 'login', 'password', 'is_active', 'user_id', 'slug', 'disable_footer_code' ]; public function country() { return $this->belongsTo(Country::class); } public function sf_guard_user() { return $this->belongsTo(SfGuardUser::class, 'user_id'); } public function company_user() { return $this->hasOne(CompanyUser::class); } public function contacts() { return $this->hasMany(Contact::class); } public function press_releases() { return $this->hasMany(PressRelease::class); } public function responsible_company_user() { return $this->hasOne(ResponsibleCompanyUser::class); } public function user_payment_options() { return $this->belongsToMany(UserPaymentOption::class, 'user_payment_option_company', 'company_id', 'payment_option_id') ->withPivot('ip_address', 'is_active') ->withTimestamps(); } }