Di model tambahkan

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

sesuaikan ‘password’ dengan nama field input yang anda gunakan. Contoh password yang telah di encypt $2y$10$2IMUhT/QG6smZAgsj49L0uW/GmDPjlp7Bu.D7/useshit7uk4gTxO

Leave a comment

Your email address will not be published. Required fields are marked *