Laravel – Call database seeder class from controller
Some times you may need to see the results of specific seeder class in a web page instead of terminal. Thus instead of calling the seeder class via terminal:
1 2 3 4 |
php artisan db:seed --class="ClassName" |
Call the class from...