harrygulliford / laravel-firebird

Firebird database driver for the Laravel Framework
63 stars 30 forks source link

How to configure in Lumen? #7

Closed renansteles closed 4 years ago

renansteles commented 4 years ago

I'm trying to install the package on Lumen 7 and I'm not getting it. I also need to say that I'm new to Lumen.

What I've done so far: 1- I installed the package via Composer: "composer require harrygulliford / laravel-firebird" 2- I created a config folder containing the database.php file as in Laravel 3- I changed Lumen's app.php to read the file: $ app-> configure ('database'); 4- I created a model and defined the connection: protected $ connection = 'firebird';

However the application returns the error to me: Unsupported driver [firebird]

What should I do?

renansteles commented 4 years ago

I was able to solve the problem by adding the following line in the Services Providers part of the app.php file:

$ app-> register (\ Firebird \ FirebirdServiceProvider :: class);