How do I correctly add custom database support in Laravel 5?

Let's say you want to add custom database support to Laravel 5. Whether it's MongoDB, Oracle, or the sqlite mod (SQLCipher). How would you do it?

I am looking for a suitable, elegant solution. No core-hacking, which is easy to do but will force you to manually parse the codebase and rewrite it on every Laravel update.

Background

Actually this question was asked while trying to implement sqlcipher support in Laravel. Analyzed alternative crypto resources did not find a suitable way to manage MySQL or Postgre keys, so decided to go with encrypted sqlite. Actually, it might be possible to copy the sqlite procedure and just change the lib + add key query, but as I said, I don't want to hack into the kernel. It just isn't right.

+3
sqlite encryption laravel laravel-5 sqlcipher


source to share


No one has answered this question yet

See similar questions:

1
Can I integrate a custom PDO wrapper in Laravel

or similar:

1031
How can I list tables in a SQLite database file that was opened with ATTACH?
371
Best Practices for Individual Helpers in Laravel 5
274
How to use an existing database with an Android app
273
How to rename a column in a SQLite database table?
237
How to unlock a SQLite database?
187
Add custom attribute to Laravel / Eloquent model on load?
153
How to use multiple databases in Laravel
1
Laravel Firebase Multiple Database Support
0
Custom Laravel Auth not working as expected
0
database query is not working as expected laravel



All Articles
Loading...
X
Show
Funny
Dev
Pics