attributes['password'] = bcrypt($value); } public function nameLink() { return link_to_route('users.show', $this->name, [$this->id], ['target' => '_blank']); } }