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

I'm having the same issue. I was hoping to find a more... elegant solution that still worked with the Laravel ecosystem. The best I have found so far is to use Doctrine (which has IBM DB2 support) instead of Eloquent. So far I have found this, but haven't tried implementing it yet:

https://github.com/mitchellvanw/laravel-doctrine

0

I've never used db2 but i guess the easiest would be to write a laravel driver so you can easily use db2 along with Eloquent.

0

In a project I'm using ccovey\odbc-driver-l4 to connect with ODBC to my DB2 instance.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

davejal davejal Joined 10 Jan 2015

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.