course

The Repository Pattern in Laravel

Avoid repetition, scale your project and make maintenance a cinch. From simple to powerful repositories that work for any size project, we go through the steps to implement the repository pattern in Laravel.

Watch this course

1. Introduction

01:25

2. The most simple repository

14:21

3. Avoid repetition with a repository abstract

11:56

4. Shared repository methods

09:08

5. Adding flexibility with Criteria

12:26

6. Combining Eloquent traits and Criteria

03:52

7. Criteria dependancies

03:42

8. Criteria for eager loading

05:53

9. Custom method piggybacking

04:21

10. Problems with route model binding

07:33

11. Handling records that can't be found

06:16

12. Recap: A new repository

04:50

13. Creating through relationships: Method 1

02:24

14. Creating through relationships: Method 2

08:06