Laravel 6 Advanced – e7 – Repository Pattern



The Repository Pattern is a common refactor that you may encounter in large Laravel applications. While it is not ideal for small to medium projects, it’s a perfect solution for those applications that need an abstraction of the data layer.

For the best experience, follow along in our interactive school at

DigitalOcean Referral

Hit us up on Twitter with any questions or comments @codertape (

About This Course

Ready to level up your Laravel skills? This series is for you, follow along as we uncover the advanced Laravel features that actually make Laravel the most popular php framework. We’ll have lot of tips and tricks along the way. Are you ready?

Nguồn: https://cardtutorialonly.com/

Xem thêm bài viết khác: https://cardtutorialonly.com/meo-vat/

All Comments

  • Dude, that map->format(); is genius, Wow
    Also I've never know that we can ->diffForHumans() from carbon, thanks so much

    Dung Nguyen June 11, 2020 10:59 pm Reply
  • great stuff, but how would you combine repositories with API resources?

    indubiopronegro June 11, 2020 10:59 pm Reply
  • What IDE is this?

    Raymond Ativie June 11, 2020 10:59 pm Reply
  • Thank you 👍

    Sofia Topalidi June 11, 2020 10:59 pm Reply
  • Does Repositories should be responsible for updating data?

    Євген Сідельник June 11, 2020 10:59 pm Reply
  • Outstanding, thank u!

    Irfan Ullah Shakir June 11, 2020 10:59 pm Reply
  • mind blowing video I have ever seen in the youtube

    vim kndll June 11, 2020 10:59 pm Reply
  • Thank you, bro!!! You are awesome! I learnt everything I'm confused. Thank you for your lessons. Sincerely, Sanjarbek from Uzbekistan.

    Tutorialsuz Official June 11, 2020 10:59 pm Reply
  • Thanks for sharing. This repostories like Helper, are we use without construct
    Like "use App/Repostories/TestRepostory"
    I was use like this, some 5.x version in laravel

    Fatih Kobacık June 11, 2020 10:59 pm Reply
  • I love the way you teach, just the interface was too quickly to digest for me, XD

    AquienAguas June 11, 2020 10:59 pm Reply
  • Outstanding

    Irfan Ullah Shakir June 11, 2020 10:59 pm Reply
  • Thank you !! very clear !

    Jaime Arias Almeida June 11, 2020 10:59 pm Reply
  • I think some of these concepts could be done by using Query Scope for readability if you are using Eloquent:
    $customers = Customer::isActive()->orderBy('name', 'asc')->withUser()->get();

    then pass that to API resource class for formatting:
    use AppHttpResourcesCustomerResource;
    return new CustomerResource::collection($customers);

    Just Anthony June 11, 2020 10:59 pm Reply
  • Awesome. You could've used Eloquent resources instead of format() right?

    John June 11, 2020 10:59 pm Reply
  • Show it to guys from India, who take all logic to controllers :')

    Adrian Hojny June 11, 2020 10:59 pm Reply
  • Hi, i have doubt. I am new to oops and laravel. Can we use traits to do format ?

    Arul Raj June 11, 2020 10:59 pm Reply
  • out of the box 🙂

    Mahmoud Alajaj Alarar June 11, 2020 10:59 pm Reply
  • This is the best quality content coding pattern

    Parajuli Sunil June 11, 2020 10:59 pm Reply
  • Thanks so much for this tutorial

    jeck 08 June 11, 2020 10:59 pm Reply
  • Thanks so much , just keep going 🙂

    saeideh Monfared June 11, 2020 10:59 pm Reply
  • can you share your code

    Dương Nguyễn June 11, 2020 10:59 pm Reply
  • An extremely useful lesson, thank you, Victor!

    Maksym Tykhonenko June 11, 2020 10:59 pm Reply
  • Put these courses on udemy and I'd defo buy it

    Coder 101 June 11, 2020 10:59 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *