Open abackstrom opened 2 months ago
oh shoot, let me take a look...
Did you create the database first and add the config to .env
? I just tried a fresh install and the migrate command seems to be working, although I get an error later on in the migrations.
What you found is the call to Setting::value
which retrieves a setting from the database, however that function first checks if the settings table exists with a call to Schema::hasTable
, and that function expects the database config to exist and be correct, even if the database table hasn't been created yet.
I just pushed a change that stops clobbering the exception when running in the console, so you should see the actual error message from the database now.
SQLSTATE[HY000] [1049] Unknown database 'laravel'
means the database hasn't been created yet. I realized that step was not explicitly in the readme, so I also added that.
I'm attempting to setup a local dev environment but the setup steps no longer work due to database access in
MailConfigServiceProvider.php
:https://github.com/aaronpk/Meetable/blob/3b6a52c22a66fb790f7e698de28d8b63ddbe23d7/app/Providers/MailConfigServiceProvider.php#L26-L29
The provider attempts to access the database before it's set up, causing every
artisan
invocation to fail, including duringcomposer install
.If we tell
app/Exceptions/Handler.php
to throw the original exception rather than raise anHttpException
, we get:The trace for this exception is: