When i was working on my project repository i found error "fatal: unable to access 'myrepo' Failed to connect to bitbucket.org port 443: Network is unreachable" few day ago. when i going to just git pull command i found error like as bellow:
fatal: unable to access 'https://email@example.com/hardik/setup_backend.git/':
Failed to connect to bitbucket.org port 443: Network is unreachable
But i try to solve it but nothing, at last i found solution i was use <strong class="path">HTTPS</strong> for clone repo. But i need use <strong class="path">SSH</strong> for git repo. So i chan.....
when i was working on my laravel project with my friend. both are working on same project, when i changed on many files, he don't know and he changed name of repository on bitbucket and i couldn't push any thing, i told him. He know how can we resolve this issue so i remove my old remote and added new remote url on my existing repository.
Finally, i solved my issue, if you also fetch issue like i had then you can just follow bellow command and solve.
<pre class="prettyprint lang-php">
git remote -v
git remote remove origin
git remote add origin Bitbucket_Rep.....
In this post i want to share with you how to create Repository Pattern in Laravel 5 application. generally we are getting data directly from model, I mean we are use just MVC. But if you have big application then it is better way if you use Repository Pattern. I will give you few step to create Repository Pattern. normally we use directly from Model but if you make Repository Pattern for every module then it is good way to develop laravel application.
<img width="100%" style="border:2px solid red" src="/upload/Laravel-5-Repository-Pattern-Tutorial.png">
<strong class="step">Step 1: Create In.....