So I want to have a default account for admin so that I can simply login to the system once it is deployed.
So I would want to insert record for users table: name,email,bcrypt(password)
So how should I go about it ?
I searched and discovered that you can create database seeder for the user by storing all info in .env file and creating user using:
php artisan migrate --seed
But this approach doesn't feel right ? Is there any better approach ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire