Bug fix
Seeders generated with the --prerun / --postrun event hooks fataled at runtime with Error: Class "Database\Seeders\Exception" not found (and the equivalent for the Event facade and the user's event class).
The hook code was injected with unqualified class names inside the stub's namespace Database\Seeders;, so PHP resolved them relative to that namespace. This was a latent regression: the stub gained its namespace in 2020, but the event-injection code (written in 2016, for global-namespace seeders) was never updated.
Fix
The injected Event facade, base Exception, and the user-supplied event class are now fully qualified with a leading backslash, matching the already-correct \DB:: calls in the same stub.
Tests
Adds a regression test that asserts the qualified output and loads + executes the generated seeder to prove it no longer fatals. Verified end-to-end against a real Laravel 10 / PHP 8.3 / MySQL install for both the common path and the event-hook path.
Full diff: #264