Laravel

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!

2 thoughts on “Laravel: Display Progress Bar in Seeder

Leave a Reply

Your email address will not be published. Required fields are marked *

8 − six =