Skip to content
Discussion options

You must be logged in to vote

You can actually implement this idea today in Laravel without waiting for a core feature, using a lightweight local-only setup. Here's a clean approach that gives you the same benefits you're proposing:

✅ 1) Log dispatched events only in the local environment

In your EventServiceProvider (or a dedicate service provider), you can listen to all events and store them in a JSON log:

use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Event;

public function boot()
{
    if (App::environment('local')) {
        Event::listen('*', function ($eventName, $payload) {
            Storage::append('events.log', json_encode([
                'even…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by somarkn99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants