How to replace connection class that mysql driver uses? #54484
Unanswered
kenarsuleyman
asked this question in
Q&A
Replies: 2 comments 2 replies
-
You could probably call |
Beta Was this translation helpful? Give feedback.
2 replies
-
You can write your own driver which extends the MySQLConnection and overrides what you need. Then you just need to use that connection as the driver in your You can use https://github.com/mongodb/laravel-mongodb as inspiration, as it is a custom driver, and supports laravel 11.x. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, to find a solution to my problem I described here #54470 I was thinking that I can write a custom MysqlConnection class that extends the original MysqlConnection class when mysql selected as database driver, which uses my own Grammer class that I extended from original class as well so I can replace methods that are incompatible with DigitalOcean.
I read many articles online but Laravel 11 changed things a lot and I couldn't find a solution online. Can someone show me a way to do this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions