In this video, I will review the code of a public project called LinkAce. I’ve noticed 8 things that worth explaining and talking about.
00:00 Intro
00:28 Scopes and Default Parameter
02:35 Flash Notifications Package
04:10 Repository Pattern. Kind Of.
06:05 Global Trash: Another Repository
07:32 Controllers for Models?
08:44 Global Helper Functions
10:03 Model History with Revisionable
11:07 Eloquent save() VS update()
Repository:
Related links:
- Eloquent Scopes: #local-scopes
- Laracasts/Flash Notifications:
- Laravel Services and Repositories: 3 Example Projects
- Laravel Code Review: Why NOT Use Repository Pattern?
- Revisionable package:
- - - - -
Support the channel by checking out our products:
- Try our Laravel QuickAdminPanel:
- En