Laravel provides a wonderful debugging assistance Laravel Telescope. It's impossible to avoid bugs but use Laravel Telescope manage and debug your apps.
When developing with Laravel, in some cases we just write everything around a default installation, to get features done as quickly as possible. In that case, everything needed for running PHPUnit is already set up after running.
A few ways to collect and and inspect your application data.