attributes['password'] = password_hash($value, PASSWORD_BCRYPT); } } public function demand() { return $this->morphOne('App\Models\Demand', 'publisher'); } public function demandUser() { return $this->morphOne('App\Models\Demand', 'biddingUser'); } public function demandBidding() { return $this->morphOne('App\Models\DemandBidding', 'biddingUser'); } public function agentProductItem() { return $this->hasMany(AgentProductItem::class); } }