Laravel - Run a Single Seeder by classname

Below is how to run a single seeder from your command line:

php artisan db:seed --class=PokemonCardsPricingTableSeeder

In the above command, you would need to replace the –class= value to what your classname is.

That’s it! Short and sweet. Cheers 🍻

Load 0 Comments