Newest content
-
· 10 mins, 1828 words
Your First App in Flutter: Default One VS Understandable One
-
· 1 min, 163 words
FREE E-book: 100 Laravel Quick Tips (and counting)
-
Random Quick Laravel Tip:
Repeatable Callback FunctionsIf you have a callback function that you need to re-use multiple times, you can assign it to a variable, and then re-use.
1$userCondition = function ($query) {2 $query->where('user_id', auth()->id());3};45// Get articles that have comments from this user6// And return only those comments from this user7$articles = Article::with(['comments' => $userCondition])8 ->whereHas('comments', $userCondition)9 ->get(); -
· Updated Aug 2022 · 4 mins, 735 words
8 Tricks with Laravel Timestamps
-
· 2 mins, 286 words
Taylor Otwell: Laravel 7 Will Move Auth Controllers into UI Package
-
· 3 mins, 504 words
Upload and Parse CSV with Laravel MediaLibrary and SpreadsheetReader
-
Premium Course: Laravel Collections Chains: 15 Real Examples
-
· Updated Aug 2022 · 3 mins, 454 words
Eloquent: Recursive hasMany Relationship with Unlimited Subcategories
-
· 4 mins, 607 words
The Biggest Problem with Eloquent Accessors "Magic"
-
· Updated Aug 2022 · 2 mins, 253 words
Get Array of IDs from Eloquent Collection: pluck() or modelKeys()
-
· 2 mins, 352 words
Laravel: Get Newest/Oldest Records from Pivot Table in BelongsToMany
-
· 6 mins, 1134 words
Laravel Two-Step Registration: Optional Fields for Country and Bio