Support the ongoing development of Laravel.io →
Configuration Cache Database
Last updated 2 years ago.
0

I would double check the db settings one more time, just because.

Then I would make a test route and see if the db connection works.

if ( DB::connection()->getDatabaseName() )  {
  dd("success");
}

If it fails, then perhaps creating the db connection in the route would be the next test.

Did you add any new tables perhaps the db import didn't work.

All i can think of currently.

0

TerrePorter said:

I would double check the db settings one more time, just because.

Then I would make a test route and see if the db connection works.

if ( DB::connection()->getDatabaseName() )  {
 dd("success");
}

If it fails, then perhaps creating the db connection in the route would be the next test.

Did you add any new tables perhaps the db import didn't work.

All i can think of currently.

Thank you, that was a great idea. I took that a step further and queried the table in question at the same time in order to see data displayed.

On the app, data is still not showing, but at least now I know it's not the DB connection, so obviously I have a reference or dependency discrepancy in the view somewhere. Thanks again!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Tekhed44 tekhed44 Joined 30 Jan 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.