Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mahfuzhur's avatar

is it possible to connect both mysql and firebase in same laravel 5.8 project?

i want to insert data to firebase from my laravel app which is already connected to MySql database

0 likes
2 replies
wilburpowery's avatar
Level 23

You can do this by creating a new connection in config/database.php.

Then you can have different models using different connections by specifying a protected $connection = 'firebase'; property.

Please or to participate in this conversation.