HasOne(Store::class,'id','store_id'); } public function user(){ return $this->HasOne(UserW::class,'id','user_id'); } public function getAccountAttribute($value){ return round($value); } }