samedi 3 juin 2017

How to properly add custom database support to Laravel 5?

Suppose you want to add custom database support in Laravel 5. Whether it is MongoDB, Oracle or sqlite mod (SQLCipher). How would you go about it?

What I'm looking for is proper, elegant solution. Without core-hacking, which is easy to do, but would force you to manually analyze the codebase and rewrite it on every Laravel update.

Background

Actually, got this question trying to implement sqlcipher support in Laravel. Analyzed alternative crypto solutions, found no good enough way to manage MySQL or Postgre keys, so decided to go with encrypted sqlite. In fact, one might probably copy sqlite routine and just change the lib + add key request, but as I said before, I don't want to hack the core. It's just plain wrong.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qLuc4a
via IFTTT

Aucun commentaire:

Enregistrer un commentaire