Тёмный

Get Data From Multiple Databases In One Project | Laravel Tip 

Laratips
Подписаться 18 тыс.
Просмотров 15 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 59   
@mdhamidulislam8645
@mdhamidulislam8645 17 дней назад
thank you. this is very helpful video
@ayazahamed8254
@ayazahamed8254 8 месяцев назад
Very Well Explained.
@rahulkumarsingh1716
@rahulkumarsingh1716 3 года назад
I like the way you explain even the minor details. Good.
@Laratips
@Laratips 3 года назад
Thanks
@luciferzzzzzz
@luciferzzzzzz 3 года назад
Great work ❤️ i really like to watch your videos. Keep going
@Laratips
@Laratips 3 года назад
Thank you 🙂
@jimk5734
@jimk5734 3 года назад
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!
@pesovatech6899
@pesovatech6899 Год назад
Nice thanks for this video
@Laratips
@Laratips Год назад
Most welcome
@Kirasim25
@Kirasim25 2 года назад
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)
@lidyaamel7642
@lidyaamel7642 3 года назад
How to connect laravel with multiple connections depends on option list. Help me please. Thanks
@faheem08
@faheem08 7 месяцев назад
Can you please make a vidio how we can get data using join method from two different databases two table and show them
@R0b3
@R0b3 2 года назад
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.
@Laratips
@Laratips 2 года назад
Yes, it is possible. You just need to change the connection name.
@R0b3
@R0b3 2 года назад
@@Laratips Ok but is it possible do it automatically inside controller?
@R0b3
@R0b3 2 года назад
I'm using oracle db as second DB. I must install some packages extra by using composer? Like for example laravel-oci8??
@Laratips
@Laratips 2 года назад
I don't think so. You need to do it separately.
@R0b3
@R0b3 2 года назад
@@Laratips and what about oracle connection? Should I install some extra package or just create and connection in ENV and database.php??
@bashardlaleh2110
@bashardlaleh2110 3 года назад
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
@Laratips
@Laratips 3 года назад
Yes absolutely
@TusharZambare
@TusharZambare 2 года назад
How to fetch search result from 2 or more databases like global search engine.
@spartacusyusuf9989
@spartacusyusuf9989 3 года назад
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?
@abdullahsheikh1676
@abdullahsheikh1676 2 года назад
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
@GergelyCsermely
@GergelyCsermely 3 года назад
Thanks
@MedSalemDZ
@MedSalemDZ 3 года назад
Why should I use the same server for the two databases ? Is there any solution for bringing data from two deferent servers?
@Laratips
@Laratips 3 года назад
You can have multiple projects in the same server. Lets say you have a customer facing project and a crm in the same server with different databases. Then in crm, you can show some reports by fetching data from the customer facing project database. And I think you can also connect to database of different server but I haven't done that so cant say much about it. In this case you can create api on one server and fetch from another server.
@hamzat7621
@hamzat7621 3 года назад
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
@Laratips
@Laratips 3 года назад
You can parse the database.php file on the crud operations and modify it as needed.
@TheMarvelsWorld
@TheMarvelsWorld 3 года назад
If there more database connection, then how can we achieve it without adding database config or env setup for other.
@Laratips
@Laratips 3 года назад
You must define a connection in the config/database.php file. In what case you need this feature? There might be other ways of getting things done.
@pushpenbanerjee9625
@pushpenbanerjee9625 2 года назад
@@Laratips Please make a video about how to parse database.php file on the crud. Thank You.
@akbar01710
@akbar01710 3 года назад
Please create FIFO tutorial in stock management...
@mausamsapkota9011
@mausamsapkota9011 2 года назад
How can migration be handled with multiple databases
@Laratips
@Laratips 2 года назад
You can just add a connection property. Check the link below. laravel.com/docs/9.x/migrations#setting-the-migration-connection
@mujejoje99
@mujejoje99 3 года назад
Good video 👍, Can you make video about readings from multiple copy of same database (replica) using laravel based on some sort of load balancing which Will split the read evenly between the databases , i wonder if laravel support this kind of functionality
@Laratips
@Laratips 3 года назад
I have not done this kind of thing before. If I do it and have a good understanding of it, i will make a video about this as well.
@pushpenbanerjee9625
@pushpenbanerjee9625 3 года назад
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.
@Laratips
@Laratips 3 года назад
It's simple. In the cache key, you need to also add the user id.
@pushpenbanerjee9625
@pushpenbanerjee9625 3 года назад
@@Laratips Thank You
@pradoshkumarmukhopadhayay3534
@pradoshkumarmukhopadhayay3534 2 года назад
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.
@ShaikKhaja476
@ShaikKhaja476 10 месяцев назад
Hi, am also looking for the same requirement. Could you please any references if you already got
@mujejoje99
@mujejoje99 3 года назад
How to make vs code autocomplete laravel code ?
@Laratips
@Laratips 3 года назад
use php intelephense extension
@manithman9887
@manithman9887 3 года назад
Hi man, I would like you to make video laravel export and import excel with multiple relationship table.
@Laratips
@Laratips 3 года назад
Great suggestion! Will make this video soon.
@manithman9887
@manithman9887 3 года назад
​@@Laratips I'm really appreciate
@franklee8099
@franklee8099 3 года назад
Awesome
@Laratips
@Laratips 3 года назад
Thanks
@bidhanbaniya7605
@bidhanbaniya7605 3 года назад
finally thanks
@Laratips
@Laratips 3 года назад
You are welcome
@bidhanbaniya7605
@bidhanbaniya7605 3 года назад
It feels really great seeing Nepali laravel community up to this stage
@mooodddy1
@mooodddy1 3 года назад
Plesae describe more about how to make multiple guard using laravel password
@palakgarg3968
@palakgarg3968 2 года назад
please make video zoom app integration laravel
@dhanrajchakravarti1368
@dhanrajchakravarti1368 3 года назад
laravel infyom package videos
@Laratips
@Laratips 3 года назад
I haven't used it before. I will have a look at what it has to offer.
Далее
Solving one of PostgreSQL's biggest weaknesses.
17:12
Просмотров 207 тыс.
Don't Use Websockets (Until You Try This…)
6:46
Просмотров 316 тыс.
File Upload in Laravel: Main Things You Need To Know
13:58
I tried 8 different Postgres ORMs
9:46
Просмотров 430 тыс.
Laravel Advanced - Task Scheduling - CRON Job
16:26
Просмотров 62 тыс.
7 Database Paradigms
9:53
Просмотров 1,6 млн
I built 10 web apps... with 10 different languages
14:23