Backpack admin panel with firebase #470
-
Hello team, I am new to the backpack admin panel package and am trying to install it in one of my Laravel projects. The project is connected with Firebase and it is working fine. But when I install the backpack package, it throws me the unknown database error and it is trying to access the MySQL database. Below am attaching the error I get:
And below is my .env file: With this error I cannot move forward with my project, any help would be appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @nasma321 , I haven't used Firebase with Backpack. But Backpack doesn't work directly with any database, it works with Eloquent models. So if the Eloquent models are properly set up, it should work fine. What are you using to connect Eloquent models to Firebase, is it Marcel's https://github.com/mpociot/laravel-firebase-sync? Your error seems pretty clear - the database doesn't exit. Your This is a Laravel problem, not a Backpack problem, so you can look for general tutorials about Laravel + Firebase like this one - https://pociot.dev/16-using-eloquent-models-with-the-firebase-realtime-database Heads-up, one thing I notice about Marcel's package is that it's NOT an Eloquent adapter for Firebase. So it might not be a 100% solution. It only advertises doing "sync" which I assume will need to hold the info somewhere (MySQL, SQLite, flatfile, array) then only sync it to Firebase. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Due to no activity, I will close this issue, but please feel free to reopen or create a new one if needed. Cheers |
Beta Was this translation helpful? Give feedback.
Heads-up - if MySQL is too much for your use case (it just holds a few users, or something like that), you could use an SQLite db too.