50 Laravel Tips
summary
Fifty concrete Laravel practices that save time and prevent bugs are listed with exact tools and config lines. Use CPX to scaffold apps, add a composer post-update hook running boost update, and flip dates to carbon immutable to avoid in-place mutations. Enable DB prohibit destructive commands, password defaults, model strict settings, Livewire Blaze, Pint + Rector (run rector then pint), Dependabot cooldowns, Pest’s changed-files tier (10 minutes to 4 seconds), Bun and FNM, and CI auto-commit for formatter fixes.
AI-written summary · about
chapters (30)
- 0:00Introduction and Laravel background
- 2:36Laravel new command shortcuts
- 3:45AI tools with Laravel Boost
- 6:01Service provider configurations
- 9:37Prefilling login inputs in dev
- 10:21Blaze performance for Blade
- 10:45Eloquent strict mode settings
- 12:42Polymorphic relationship fixes
- 14:55Forcing HTTPS URLs in production
- 16:05Code formatting with Pint and Rector
- 18:22CI pipeline improvements
- 19:04Dependabot dependency management
- 20:20PHPStan and Larastan setup
- 21:54Blade code analysis with Bladstan
- 22:18Advanced Pest testing features
- 23:46Debugging tools Laravel Debugbar
- 24:10IDE helper and error solutions
- 25:44Editor links in exception pages
- 26:30Frontend tooling integration
- 27:59Node.js ecosystem tools
- 29:31Translation function improvements
- 30:43Fluent objects with typed methods
- 31:56Request tracing and logging
- 32:21Customizing artisan stubs
- 33:25Testing tips and sleep facade
- 34:31String facade for testing
- 35:19GitHub repository documentation
- 36:43Filament component configuration
- 37:09Modern CSS features
- 37:54Summary and final tips
related talks
38mCrafting maintainable Laravel applications
36mLiving peacefully with Laravel
01h 11mTaylor Otwell :: Laravel Update
32mDesign Patterns and Packages for Excellent Laravel Backoffices
33mEnterprise Laravel
54mState of Laravel
48mMigrating a 15 Year Old Enterprise Application to Laravel: Lessons Learned and Opportunities Gained
39mClean Coding - 10+ Techniques To Clean Your PHP Code
