Laravel: Display Progress Bar in Seeder
Assalamualaikum / Hi,
Recent projects development require me to have numbers of seeders – this include some dummy data.
Each time seeding new / old data, it’s kinda boring to wait it’s done.
So I just need to know, how much the progress of the seeding. Following is the trait I’ve created to generate the progress bar.
Sample output:
Hope this small snippet benefit anyone in need displaying the progress of the seeding.
Happy coding guys!
Where should I import this traits bro ?
you import it inside your
DatabaseSeeder
class