AttributeIlluminate\Foundation\Testing\Attributes\Seeder
#[Seeder]
Attribute to configure a test seeder in the Foundation / Testing group.
Available since
Laravel 13.0
Targets
class
Parameters
$classstringSpecifies the class of the seeder to be used.
Practical usage
use Illuminate\Foundation\Testing\Attributes\Seeder;
#[Seeder('App\Database\Factories\UserFactory')]
class TestService {
// Test setup
}