https://odan.github.io/2019/11/05/slim4-tutorial.html
If you liked the tutorial, please click here on the star button: https://github.com/odan/slim4-tutorial
For technical questions create an issue here: https://github.com/odan/slim4-tutorial/issues
If you have Slim framework specific questions use: https://discourse.slimframework.com/
Write your comments / suggestions / feedback here 👇
Hi @onelostpuppy If you use the DI container and dependency injection, all your objects should have the same instance (connection) per request. If you get the error max connections, you might create a new PDO instance for each SQL query, which is not correct. Better use the container to keep a shared PDO instance.