I'm trying to use the debugbar with lumen and jenssegers/laravel-mongodb , it wasn't showing the database queries so I enabled.
\DB::connection('mongodb')->enableQueryLog();
But now it shows this error.
`Call to a member function listen() on null
in LaravelDebugbar.php line 354`
Another thing is that it only displays the debugbar on the home URL /, other than home URL it doesn't display the debugbar.
Without \DB::connection('mongodb')->enableQueryLog(); or \DB::enableQueryLog(); it renders, but doesn't show the database queries information, and it works with home page only.
Thank you