lundi 29 janvier 2018

Import database with password Laravel

I have an admin table with : id, name, surname, email and password fields... I have to import into a Laravel database those information from another database where the passwords are not hashed.

If i'd like to import datas i should write :

INSERT INTO admins (name, surname, email, password)
VALUES (myName, mySurname, myEmail, myPassword);

I wonder how i can Hash the password values ? Is there a mysql "methop" which allow it ? Thanks for your help



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FqZdRQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire