'int', ]; protected $dates = [ 'period_start_at', 'period_end_at' ]; protected $fillable = [ 'invoice_id', 'network_agent_id', 'amount', 'insured_amount', 'insurer_amount', 'period_start_at', 'period_end_at', 'file_url', 'created_at', 'updated_at' ]; public function institution() { return $this->belongsTo(AgentPlus::class, 'network_agent_id', 'network_agent_id'); } public function sheets() { return $this->hasMany(NhHealthCareSheet::class, 'invoice_id'); } }