Latest Premium Tutorial
-
· 17 mins, 3274 words · premium
17+ Laravel "Bad Practices" You Should Avoid
People keep asking me about "best practices" in Laravel. However, there are clear BAD practices. So, in this article, I will list the most common ones.
Newest content
-
· 3 mins, 428 words
Generate Random Strings with Laravel: Helper Methods
-
· 2 mins, 253 words
Filament Relation Manager: Hide on View/Edit Page?
-
Random Quick Laravel Tip:
More than One ScopeYou can combine and chain Query Scopes in Eloquent, using more than one scope in a query.
Model:
public function scopeActive($query) {return $query->where('active', 1);}public function scopeRegisteredWithinDays($query, $days) {return $query->where('created_at', '>=', now()->subDays($days));}Some Controller:
$users = User::registeredWithinDays(30)->active()->get(); -
· 1 min, 190 words
Filament Table Null Value: formatStateUsing() Doesn't Work?
-
· 5 mins, 962 words
MongoDB in Laravel: Short Guide for Beginners
-
· 2 mins, 227 words
Filament Placeholder vs Hint: When to Use Which?
-
Premium Course: Vue Inertia + Laravel 11: From Scratch
-
· 4 mins, 679 words
Filament: Get URLs and Route Names for Resources/Pages
-
· 2 mins, 227 words
Filament Select: Use HTML with CSS in Options
-
· 3 mins, 574 words
Filament: Hide Relation Manager by Condition
-
· 3 mins, 522 words
Configure Laravel Reverb in Filament Broadcasting
-
· 5 mins, 868 words
Filament: Customize Auth Emails like Reset Password or Verification