What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-10 09:00:04
how to hash password in node js
npm i bcrypt const bcrypt = require('bcrypt'); async function hashIt(password){ const salt = await bcrypt.genSalt(6); const hashed = await bcrypt.hash(password, salt); } hashIt(password); // compare the password user entered with hashed pass. async f... Add solution -
Other 2021-09-08 18:11:01
laravel create default admin user
Add to the .env file: ADMIN_NAME="John Doe" [email protected] ADMIN_PASSWORD=secure_pa55word Add to the .env.example file: ADMIN_NAME= ADMIN_EMAIL= ADMIN_PASSWORD= Create 'admin.php' inside the \config\ folder and paste... Add solution -
-
Best helpers
Ranking is empty