Open DanKeeble opened 4 years ago
@DanielKeeble is this working as-is in Laravel 6.x?
Yeah appears to be working fine for us.
I'm guessing you forked it while you wait for this to be merged/updated?
I'm guessing you forked it while you wait for this to be merged/updated?
That's correct.
A small change is required for the library to work also with lumen 6. In src/Intouch/LaravelNewrelic/LumenNewrelicMiddleware.php
, replace:
app()->getRoutes()
with
app()->router->getRoutes()
EDIT
This change was actually introduced in Lumen/Laravel 5.5, so app()->getRoutes()
will not work for any version above 5.5, and app()->router->getRoutes()
wouldn't work for the versions before 5.5.
@DanielKeeble is this working as-is in Laravel 6.x?