Latest Premium Tutorial
-
· 17 mins, 3274 words · premium
17+ Laravel "Bad Practices" You Should Avoid
People keep asking me about "best practices" in Laravel. The thing is that Laravel allows us to perform things in many different ways, so there are almost no obvious-absolute-best practices. However, there are clear BAD practices. So, in this article, I will list the most common ones.
Newest content
-
· 3 mins, 574 words
Filament: Hide Relation Manager by Condition
-
· 3 mins, 522 words
Configure Laravel Reverb in Filament Broadcasting
-
Random Quick Laravel Tip:
A simple way to seed a databaseIf you want to seed data from SQL file, no need to transform all those "insert into..." statements into seeders.
You can just run DB query directly from the seeder, calling that SQL file.
class SomeSeeder extends Seeder{public function run(){\DB::unprepared(file_get_contents(__DIR__ . './dump.sql'));}} -
· 5 mins, 868 words
Filament: Customize Auth Emails like Reset Password or Verification
-
· 3 mins, 495 words
Filament Table: Modify Base Query by User Role Condition
-
· 4 mins, 672 words
Filament Dependent Dropdowns in Edit Form: Set Select Values
-
Premium Course: Laravel Reverb: Four "Live" Practical Examples
-
· 1 min, 140 words
Filament: Remove Label Text in Resource Form Page
-
· 6 mins, 1068 words
Filament Repeater: Set Values Manually or From Other Fields
-
· 4 mins, 716 words
Filament: Money Columns and Storing Value in Cents
-
· 1 min, 193 words
Laravel Jetstream: Redirect After Login
-
· 1 min, 186 words
Filament Select with Relationship: Custom Label for titleAttribute Options