*/ protected $fillable = [ 'weather_json', 'account_id', 'name', 'website', 'number_of_employees', ]; /** * The attributes that aren't mass assignable. * * @var array|bool */ protected $guarded = ['id']; /** * Get the account record associated with the company. * * @return BelongsTo */ public function account() { return $this->belongsTo(Account::class); } /** * Get the Occupation records associated with the contact. * * @return HasMany */ public function occupations() { return $this->hasMany(Occupation::class); } }