If you have the same, or very similar, "where" statements in a few places within your project, I suggest you use Local Scopes instead.
Official docs: laravel.com/docs/8.x/eloquent...
My course "Eloquent: Expert Level" bit.ly/eloquent-course
- - - - -
Try our Laravel QuickAdminPanel: bit.ly/quickadminpanel
Enroll in my Laravel courses: laraveldaily.teachable.com
Негізгі бет Тәжірибелік нұсқаулар және стиль Same Eloquent Where Condition? Refactor into Local Scopes
Пікірлер: 43