Put it in the DatabaseSeeder.php
use Illuminate\Database\Seeder;
then run
composer dumpautoload
Since today, when running phpunit tests, I get:
Illuminate\Contracts\Container\BindingResolutionException: Target class [DatabaseSeeder] does not exist.
That class is there under the database/seeds directory.
I don't know if this is related, but I recently upgraded to Laravel 8 and also used the new schema dump features and pruned all migrations.
PHPunit is using an in-memory sqlite databsae.
Anyone know what is happening here?
Please or to participate in this conversation.