public function setPasswordAttribute(string $value): void
    {
        if (Hash::needsRehash($value)) {
            $value = Hash::make($value);
        }

        $this->attributes['password'] = $value;
    }
public function setPasswordAttribute(string $value): void
    {
        if (Hash::needsRehash($value)) {
            $value = Hash::make($value);
        }

        $this->attributes['password'] = $value;
    }
public function setPasswordAttribute ( string $ value ) : void { if ( Hash :: needsRehash ( $ value ) ) { $ value = Hash :: make ( $ value ) ; } $ this -> attributes [ 'password' ] = $ value ; }
Set `password` mutator.

@param  string  $value

@return void
Set password mutator .