lumen Call to a member function connection() on null code example
Example: Call to a member function connection() on null
I think you just uncomment $app->withFacades();, $app->withEloquent(); lines in bootstrap/app.php;
And check again, it works for me.