: Call to a member function execute() on null i 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.