Laravel Repository Design Pattern | Laravel Advanced | Repository Pattern [HINDI]

  Рет қаралды 17,933

Ajay yadav

Ajay yadav

2 жыл бұрын

A repository is a separation between a domain and a persistent layer. The repository provides a collection interface to access data stored in a database, file system, or external service. Data is returned in the form of objects.
The main idea to use Repository Pattern in a Laravel application is to create a bridge between models and controllers. In other words, to decouple the hard dependencies of models from the controllers. The model should not be responsible for communicating with or extracting data from the database. A model should be an object that represents a given table/document/object or any other type in our data structure, and this should be its sole responsibility. Therefore, to keep your Laravel code clean and safe, it is worth using repositories to separate the responsibility for which the model should never be responsible.
Laravel Repository Design Pattern | Laravel Advanced | Repository Pattern
Our Playlists:
Laravel 9:
• Laravel 9
Nuxt Js
• NuxtJS
Laravel And Vuejs
• Laravel And Vuejs
Laravel Notifications:
• Laravel Notification
Laravel And React Js
• Laravel ReactJs
Laravel Interview Questions And Answers:
• Laravel Interview Ques...
Laravel User Management System:
• Laravel User Managemen...
Laravel Multi Auth System
• Laravel Multi Auth System
Follow us:
YoutTube: / ajayyadavexpo
Instagram: / ajayyadavexpo
Twitter : / ajayyadavexpo
Linkedin : / ajayyadavexpo
Github : github.com/ajayyadavexpo
Please subscribe to my channel and share the video with your friends.
#laravelRepositoryPattern #RepostoryPattern #LaravelAdvanced

Пікірлер: 55
@santoshrauniyar5286
@santoshrauniyar5286 Ай бұрын
Sir aap ne to ekdam easy kar diya aur aapka explanation bahut hi excellent hai
@VIKASKumar-dg5vb
@VIKASKumar-dg5vb 2 жыл бұрын
Very important part
@ushayadav6401
@ushayadav6401 5 ай бұрын
Tha k you sir , it's very helpful to understand the repository structure in laravel
@ajay-yadav
@ajay-yadav 5 ай бұрын
thanks for watching !!!
@amitleuva8739
@amitleuva8739 2 жыл бұрын
do you have any videos for factory design pattern, builder and strategy pattern?
@muhammadirfan8623
@muhammadirfan8623 2 жыл бұрын
Thanku ❤
@asok1111
@asok1111 2 жыл бұрын
When to use service, model, repository, action class in lumen laravel?
@AkhileshYadav-lv3kh
@AkhileshYadav-lv3kh 2 жыл бұрын
Great sir
@sureshkukumati6526
@sureshkukumati6526 3 ай бұрын
Sir Good job 🙏
@dilmurod9820
@dilmurod9820 2 жыл бұрын
And write with solid thanks for tutorials
@moazzamali3254
@moazzamali3254 2 жыл бұрын
Excellent man Keep it up
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Thanks, will do!
@manzoorahmed350
@manzoorahmed350 4 ай бұрын
Hi i have a small question can we do same logic under contract instead of making repository which one is more powerful please suggest
@Pramodsharma-uz8ix
@Pramodsharma-uz8ix Жыл бұрын
Thank you so much sir, I was looking for this same to do , I asked my seniors but they shown zero interest to tell me. So, Thanks !
@ajay-yadav
@ajay-yadav Жыл бұрын
So nice of you
@Pramodsharma-uz8ix
@Pramodsharma-uz8ix Жыл бұрын
@@ajay-yadav Brother, I have a query, I followed you and really learned, here, we can do all this stuff without Interface, So Should we define Interface ?
@ajay-yadav
@ajay-yadav Жыл бұрын
@@Pramodsharma-uz8ix yes we should define interfaces.. It hides the details of data access logic from business logic..
@dilmurod9820
@dilmurod9820 2 жыл бұрын
Excellent thanks teach us other too thanks
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Thank you, I will
@piyushshyam473
@piyushshyam473 Жыл бұрын
Nice video sir please make videos on all design pattern used by laravel
@ajay-yadav
@ajay-yadav Жыл бұрын
Yes, sure
@sparkengineeringpc-2174
@sparkengineeringpc-2174 Жыл бұрын
you are smart.
@ajay-yadav
@ajay-yadav Жыл бұрын
😳
@muhammadzeeshan6788
@muhammadzeeshan6788 Жыл бұрын
sir make a video on admin pannel
@souravsaha1561
@souravsaha1561 2 жыл бұрын
Great video sir...how to install React inside Laravel..please make a video...This is my humble request to you
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Your humble request is accepted 😊👍
@souravsaha1561
@souravsaha1561 2 жыл бұрын
@@ajay-yadav Next video sir...
@soumenmajhi585
@soumenmajhi585 2 жыл бұрын
Please Make a video on Module system in Laravel or HMVC Thanks for this video👋
@ajay-yadav
@ajay-yadav 2 жыл бұрын
sure , thank you - great topic
@soumenmajhi585
@soumenmajhi585 2 жыл бұрын
@@ajay-yadav thanks
@ameetballa3146
@ameetballa3146 Жыл бұрын
It's very completed process,please follow eloquent,it is easy to use .
@Vikaskumar-ur5di
@Vikaskumar-ur5di Жыл бұрын
thanks for sharing good video, please make a complete video on all design pattern asap.
@ajay-yadav
@ajay-yadav Жыл бұрын
thanks @Vikas I will try my best
@Vikaskumar-ur5di
@Vikaskumar-ur5di Жыл бұрын
@@ajay-yadav you are the genius dost
@ajay-yadav
@ajay-yadav Жыл бұрын
bhai rona aa rha h 👍 thanks brother
@Vikaskumar-ur5di
@Vikaskumar-ur5di Жыл бұрын
@@ajay-yadav Bhai ache video banaye hai isliye bol diya
@Vikaskumar-ur5di
@Vikaskumar-ur5di Жыл бұрын
Please make a video front and admin login using Laravel auth
@AV-Technology45
@AV-Technology45 Жыл бұрын
Sir kya category, Blog, product etc ke liye alag - alag repository make Krna padhega
@ajay-yadav
@ajay-yadav Жыл бұрын
ek base interface common bna skte ho ... but han sbhi ke liye alg alg rkho
@amitdev1485
@amitdev1485 Жыл бұрын
make more videos regarding design patterns in laravel 9
@ajay-yadav
@ajay-yadav Жыл бұрын
sure amit soon
@hammadhasan7555
@hammadhasan7555 2 жыл бұрын
Sir class direct q use nhi kar sakty ? Interface sey bind karna q zarori hai ?
@ajay-yadav
@ajay-yadav 2 жыл бұрын
Good question @Hammad Hasan You can't inject directly an interface. Laravel's service container must know how to resolve that interface, (Which means you can't do a new CategoryRepositoryInterface() ) that's why you need the binding in your service provider. -
@amitsolanki9363
@amitsolanki9363 4 ай бұрын
Why you inject category repositoryInterface in constructor instead of injecting category repository
@aarafc.8591
@aarafc.8591 Жыл бұрын
Why cant we use UPDATE & STORE Method in Repository ?
@ajay-yadav
@ajay-yadav Жыл бұрын
it's up to you, change the function name
@zeeshanalamgir7829
@zeeshanalamgir7829 2 жыл бұрын
overall video is excellent but voice is not good plz fix the audio thank you
@ajay-yadav
@ajay-yadav 2 жыл бұрын
thanks for your valuable feedback, will work on it
@shahriarmahmudshahed
@shahriarmahmudshahed 2 жыл бұрын
This is so complicated than normal process! Why someone should follow such complicated process?
@nilanjanchakraborty2694
@nilanjanchakraborty2694 2 жыл бұрын
Yes vai. This is very complicated. Many companies are follow this pattern. Some people say that this pattern very reuseful.
@ajay-yadav
@ajay-yadav 2 жыл бұрын
A key benefit of the Repository pattern is that it allows us to use the Principle of Dependency Inversion (or code to abstractions, not concretions). This makes our code more robust to changes, such as if a decision was made later on to switch to a data source that isn't supported by Eloquent. And it makes it easier to test your application logic. Remember that unit tests only test your code, not infrastructure, so the repository abstractions make it easier to achieve that goal
@samiullah0011
@samiullah0011 Жыл бұрын
this is same like services classes.
@parassharma7370
@parassharma7370 Ай бұрын
Bhai apki video no daught achi hai voice qulity sahi nahi h
@vishvish24
@vishvish24 2 жыл бұрын
Hello I am facing an error when using JavaScript and dynamically created button as per row using for loop. And assign I'd to button dynamically but when I try access that I'd so that not displaying. Can u guide or can share ur email so that I share u exact code.
@ajay-yadav
@ajay-yadav 2 жыл бұрын
ajayyadavexpo@gmail.com
Laravel 6 Advanced - e7 - Repository Pattern
23:24
Coder's Tape
Рет қаралды 103 М.
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 514 М.
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 8 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 33 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
Laravel: Repository Pattern in practice
27:13
Przemysław Przyłucki
Рет қаралды 10 М.
Laravel Code Review: Why NOT Use Repository Pattern?
14:21
Laravel Daily
Рет қаралды 76 М.
🔥Prototype Design Pattern in Hindi | Design Pattern Series
18:21
Learn Code With Durgesh
Рет қаралды 17 М.
Factory Pattern in PHP | What is the Factory Pattern? | Why is it Required?
12:42
Programming with Vishal
Рет қаралды 10 М.
Laravel + Service Pattern + DTOs = ❤️❤️❤️
17:52
Przemysław Przyłucki
Рет қаралды 43 М.
Singleton Pattern in PHP | What is the Singleton Pattern? | Why is it Required?
8:20
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 514 М.