attributes['password'] = bcrypt($value); } public function nameLink() { return link_to_route('users.show', $this->name, [$this->id], ['target' => '_blank']); } public function agency() { return $this->hasOne('App\Entities\Agencies\Agency', 'owner_id'); } }