To create the first user, we need to use php artisan db:seed --class=UserSeeder to create first admin user. Currently, it uses admin@example.com as email and password as password.
It will be better if email address and password is asked from the user, and use those values while seeding. Aim is to use email address and password provided by the person installing the system, instead of using some hardcoded email and password.
To create the first user, we need to use
php artisan db:seed --class=UserSeeder
to create first admin user. Currently, it usesadmin@example.com
as email andpassword
as password.It will be better if email address and password is asked from the user, and use those values while seeding. Aim is to use email address and password provided by the person installing the system, instead of using some hardcoded email and password.