I want to cast pivot column using custom class i did this :
class CompanyCast implements CastsAttributes { privat