As a part of my new Laravel mentorship program in my home country Lithuania, I started doing code reviews of my student developers. Here's a 20-minute example that I decided to publish on Youtube - should be useful to you guys, too.
00:00 Intro
01:33 Route Grouping
04:08 Shorter Middleware Class
07:01 Middleware with Parameters
09:06 Migrations with Foreign Keys
10:32 Controller Index Refactor
14:03 Code Styling
14:46 Store and Validation
18:00 Update and Route Model Binding
Related resources:
- Route grouping: [ Ссылка ]
- Middleware with Parameters: [ Ссылка ]
- Migration foreign keys: [ Ссылка ]
- PHP Ternary operator: [ Ссылка ]
- Eloquent "When" method: [ Ссылка ]
- Code Styling and PSR-12: [ Ссылка ]
- Laravel Validation with Form Requests: [ Ссылка ]
- Route Model Binding: [ Ссылка ]
- - - - -
Support the channel by checking out my products:
- My Laravel courses: [ Ссылка ]
- Laravel QuickAdminPanel: [ Ссылка ]
- Livewire Kit Components: [ Ссылка ]
- - - - -
Other places to follow:
- My weekly Laravel newsletter: [ Ссылка ]
- My personal Twitter: [ Ссылка ]
![](https://i.ytimg.com/vi/sukS7QOBpK0/maxresdefault.jpg)