you are hasing the password twice. once in the create method, second in the setPasswordAttribute.
$data=new User;
$data->username="saim";
$data->password="test"; //do not hash here.
$data->save();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community