I am trying to create a new virtual development environment for one of my projects on Github. I have installed MariaDB, PHP 7, made a local clone of the repository, and restored its .env-file. It should be working.
Unfortunately, when I type php artisan and composer update, I receive the following error:
PHP Fatal error: Uncaught Error: Call to a member function connection() on null in src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1058
Stack trace:
#0 src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1024): Illuminate\Database\Eloquent\Model::resolveConnection(NULL)
#1 src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(859): Illuminate\Database\Eloquent\Model->getConnection()
#2 src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(818): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder()
#3 src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(802): Illuminate\Database\Eloquent\Model->newQueryWithoutScopes()
#4 src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1374): Illuminate\Database\Eloquen in src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 1058
I do not know if this is relevant to the error at hand, but note the misspelling of Eloquent on stack trace #4.
You can find my composer.json file over here:
https://github.com/galadhremmin/Parf-Edhellen/blob/master/src/composer.json
PHP version: 7.1.2 on Debian 9.
Any ideas what might be wrong?
Edit This affects the artisan and composer components which won't even run.