Lumen and Firebird Database

Asked

Viewed 761 times

3

Lumen and Eloquent can be used in a Firebird database that is already used by another application, without the ORM making changes to the database structure?

Another detail: it is possible to access only 10% of the tables without the risk of change, creating only the necessary Models classes?

I’m starting to learn the framework and would like to know this possibility.

Could they indicate any article, subject or book that would help me to do so?

1 answer

2


Lumen and Eloquent can be used in a Firebird database that is already used by another application, without the ORM making changes in the database structure?

Yes, it is possible. Eloquent does not change the table structure of the source database (except for cases where you create a Migration). You just need to adapt the Model, as the field of Primary key, table name, access the correct fields, and so on.

To Documentation of the Eloquent shows you how to do it.

For Firebird support with Lumen or Laravel, you can use this package:

https://github.com/jacquestvanzuydam/laravel-firebird/tree/5.2-sup

Another detail: it is possible to access only 10% of the tables without the risk of change, creating only the Models classes necessary?

Only the Models you implement will be able to manipulate the tables. What you don’t implement if you don’t have to.

They would indicate some article, article or book that would help me for such?

You can choose to read the Lumen, Laravel or package that I recommended for this. For you who are starting I do not know if it is a good idea to go straight by Lumen, because you will have to do a lot at hand.

A step by step to what you want to do you will hardly find, but nothing prevents you from breaking your head a little and publish something that can help someone in the future :)

  • Thank you for your attention to the answer. Very thorough and gave me a north for my solution. I will study carefully the proposed solution and I will consider your advice on the Lumen.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.