oitcode / Cbswei

CMS and other features. Created with laravel and livewire.
MIT License
12 stars 3 forks source link

Make UserSeeder ask for email and password from the user #111

Open oitcode opened 1 month ago

oitcode commented 1 month ago

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.