Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
Hat tip to @gcavanunez for pointing me to Buggregator.
Usage:
After answering the prompted questions (about where the web UI, the VarDumper server, the Monolog server port, and network alias), the service should run at localhost:8000 (unless you change the default port).
VarDumper Server
To start sending
dump()
calls to Buggregator, you may set the following configs on the Laravel app:Ray
First, on the Laravel app, require the Ray PHP client:
Next, set the following configs:
SMTP Server
To send emails, you may set the following configs on the Laravel app:
Profiler
Buggregator ships with an XHProf profiler. To use it, first install the
xhprof
extension via pecl:Then add the
extension=xhprof.so
to thephp.ini
. On Sail, you can do that with:Then, install the package:
Then, configure the profiler envs:
Sentry
First, install the package following sentry's docs.
Then, configure the Sentry DNS on the
.env
of your Laravel app:These should serve as examples. There's also a nice monolog service, an inspector, and an HTTP dump server.
Notes on Sail
If you're using Takeout in combination with Sail, you can use the
network_alias
configured as the hostname (which defaults tobuggregator
) instead of127.0.0.1
. The Laravel app container must be added to the Takeout network. For more info, check out Matt's blog.