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.
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community