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.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i want to insert data to firebase from my laravel app which is already connected to MySql database
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.