This doesn't delete the table, it deletes all the rows contained in the specified table. It's up to you to decide if and when you would use this. http://laravel.com/docs/queries#deletes
Usually, a seeder is loading reference/lookup data, so to ensure there are no duplicates you would first empty the table using this command.
In addition to the above reference/lookup data, its often really nice for manual testing/debugging reasons to know that you're working with a clean database.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community