Support the ongoing development of Laravel.io →
Database Architecture

Hi. I am using Laravel for a bit of time and at one point in order to solve "created_at column does not have default value" error, I modified the config/database.php file by setting 'strict'=true. That solved my problem, but after setting it true I am not able to connect to another database using "mysqli_connect" for which I was able to connect before this change. I set that 'strict' mode back to false but it still fails to connect the external database using "mysqli_connect" function. I tried to clear the cashes and look into .env file but nothing helps. Any help would be appreciated.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nbaghiro nbaghiro Joined 29 Apr 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.

© 2025 Laravel.io - All rights reserved.