*/ protected $fillable = [ 'membership_application_id', 'name', 'email', 'ic_number', 'birth_date', 'birth_place', 'gender', 'marriage_status', 'address', 'phone_number', 'office_number', 'postcode', 'employer_name', 'employer_address', 'current_position', 'start_work_date', 'stock_monthly_contribution', 'fee_monthly_contribution', ]; /** * @var list */ protected $hidden = [ ]; protected function casts(): array { return [ 'start_work_date' => 'date', 'stock_monthly_contribution' => 'decimal:2', 'fee_monthly_contribution' => 'decimal:2', ]; } public function membershipApplication(): BelongsTo { return $this->belongsTo(MembershipApplication::class); } }