snbhattacharjya / ppms

Polling Personnel Management System
1 stars 1 forks source link

Better way to write the User Seeder Class #20

Open snbhattacharjya opened 3 years ago

snbhattacharjya commented 3 years ago

The code in the UserSeeder Class seems to be a little verbose and repetitive. Suggest for a better way to produce the same result but in much more simple and readable way.

snbhattacharjya commented 3 years ago

Commit URL 83202ba4bd6a299f5e1b5950472155a74d1bb447

abusalam commented 3 years ago

Instead of the first object seeding with eligible(in case of heirarchy) random object is prefered.