I am setting up a content management system (CMS) in Laravel using #GoogleCloudPlatform. This #CMS will have quite a few polymorphic many-to-many relationships (at least 10) and for that reason I am considering whether I should use Firebase or other #NoSQL databases with Laravel.
I know that there is a laravel-firebase package by Kreait which should allow me to use the firebase as database. My question is therefore:
- Are there any drawbacks to using Firebase with Laravel, which I should be aware of?
- Can I possibly use a hybrid model where some data is stored in the SQL database (e.g. user data) while other is stored in Firebase (e.g. the content).
- Or should I just stick to MySQL and create the several polymorphic many-to-many relationships?
- Should I do both and see what works better?
Any advice is appreciated.
6 upvotes·189.2K views