Get Data From Multiple Databases In One Project | Laravel Tip

preview_player
Показать описание
In this video, we will be looking at how to get data from multiple databases in one project. We will learn to establish connections with multiple databases and switch at runtime.

=== Important Links ===

Fonts, extensions I use, and Support Laratips links:

=== Offer ===

Get up to Free Hosting by using code "LARATIPS" and you get $15 as credit which can last almost a month.

Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr

====================== Support ======================

If you want me to continue making this kind of video for free on YouTube, then you can support the channel

eSewa ID: 9843632084

===

GitHub repo:

Refactor If else Statement and Write Clean Code Using Lookup Table

Social Media Links:

Let's be friends

Follow On Facebook

Tech stack:
Laravel
PHP

#laravel #php #laraveltip #laratips
Рекомендации по теме
Комментарии
Автор

I like the way you explain even the minor details. Good.

rahulkumarsingh
Автор

would you consider making a video about user access control in a multi-tenant laravel app? i.e tenants adding their own users. your content is good, clean clear explanation. Keep up the good work!

jimk
Автор

Great work ❤️ i really like to watch your videos. Keep going

luciferzzzzzz
Автор

hi there. Thanks a lot for your support. SO is it possible making one query on one DB and if no result switch to other DB? Thanks a lot.

Rb
Автор

How to connect laravel with multiple connections depends on option list. Help me please. Thanks

lidyaamel
Автор

Can you please make a vidio how we can get data using join method from two different databases two table and show them

faheem
Автор

Can you please make a video on Laravel SSO for multiple projects to access same login server( which the projects may be api based or for example laravel backend and react frontend)

Kirasim
Автор

How to fetch search result from 2 or more databases like global search engine.

TusharZambare
Автор

since the Cache is shared between users, so when another user logs in his default connection will be the one set by the last user, so it better be stored in the user's session or cookies instead of cache but of course as you said it all depends on the app

bashardlaleh
Автор

Is there any way to push new config setting in database.php in run time..
I have Created database and table on run time but I have occurred problem to push config setting... There is any dynamic way to append new connection

hamzat
Автор

If there more database connection, then how can we achieve it without adding database config or env setup for other.

TheMarvelsWorld
Автор

Why should I use the same server for the two databases ? Is there any solution for bringing data from two deferent servers?

MedSalemDZ
Автор

How can migration be handled with multiple databases

mausamsapkota
Автор

Can you make a video on pusher but using jQuery as frontend while using broadcast route? Also a video of synchronizing database records that where done offline on a local machine with that which is online? Also a video that when a user buys a service it clones the project creates the database, and set the .env on cpanel hosting?

spartacusyusuf
Автор

I follow your all videos, Just I request to you please make a video for How we can use multiple database server like mysql, mongodb etc.

Hope you will make it

Thank you

abdullahsheikh
Автор

How to make vs code autocomplete laravel code ?

mujejoje
Автор

Please create FIFO tutorial in stock management...

akbar
Автор

Hi man, I would like you to make video laravel export and import excel with multiple relationship table.

manithman
Автор

Fantastic video. But, if I use database for each user then what to do ? say 100+ user. Please if possible make a video tutorial. Many many thanks.

pushpenbanerjee
Автор

Can you consider my request to create a video on Laravel multi-tenants with different databases from scratch level using Laravel not using any third party? It will help me.

pradoshkumarmukhopadhayay