My Laravel Repository Pattern Solution (in only 30 lines of code)

My Laravel Repository Pattern Solution (in only 30 lines of code)

A 30 line piece of script can finally provide a good solution for a repository pattern in Laravel apps.