8 Common Mistakes Made by Laravel Developers And How to Fix Them [w/ Examples]
In this video, we will be discussing some common mistakes and bad habits that Laravel developers make in Laravel, along with best practices for avoiding these mistakes. We will cover topics such as breaking Laravel Controllers down code into smaller components, using Laravel middleware correctly, testing Laravel code, using database migrations, using route model binding, following the right naming conventions, and using Laravel its database ORM, Eloquent properly. By following these best practices, developers can write more efficient, maintainable, and scalable code in Laravel.
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews, or a coaching session for Laravel: https://calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: https://newsletter.codewithdary.com/
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
🔥 Resources
- Twitter: https://twitter.com/codewithdary
- Instagram: https://www.instagram.com/codewithdary/
- Blog: https://blog.codewithdary.com/
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary
- TikTok: https://www.tiktok.com/@codewithdary
📋 Table of Content
00:00 - Introduction
00:56 - Not Separating Validation From Controllers
04:25 - Not Following SRP
07:27 - Not Using Middlewares Correctly
09:35 - Not Testing code
10:22 - Not Using Migrations
11:15 - Not Using Route Model Binding
14:09 - Not Using Naming Conventions
17:12 - Not Using Eloquent Correctly
#laravel #youtube #php