Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage in laravel 4 #34

Open
wstaples opened this issue Oct 19, 2017 · 0 comments
Open

usage in laravel 4 #34

wstaples opened this issue Oct 19, 2017 · 0 comments

Comments

@wstaples
Copy link

wstaples commented Oct 19, 2017

I have a laravel 4.2 app that I would like to use this for. I'm able to get it installed okay but I'm getting the error "ReflectionException: Class db does not exist".

The full error from artisan is:
{"error":{"type":"ReflectionException","message":"Class db does not exist","file":"/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php","line":504}}

in my composer.json I have:
"cooperl/laravel-db2": "1.0.*"

I added 'Cooperl\Database\DB2\DB2ServiceProvider', to my app.php file

and my controller is making a very simple query:
DB::connection('iseries')->table('my_users')->first();.

I get the same error if I attempt to run php artisan

My main question is does this work at all for laravel 4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant