Junior Code Review: Laravel Routes, Middleware, Validation and more
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: #route-groups
- Middleware with Parameters: #middleware-parameters
- Migration foreign keys: #foreign-key-constraints
- PHP Ternary operator: @sayantinideb/ternary-operator-in-php-how-to-use-the-php-ternary-operator-x0ubd3po6
- Eloquent “When“ method:
1 view
1023
323
14 years ago 00:14:15 38
110825 Mnet Beatles Code - Super Junior (1/4)
4 years ago 00:17:29 17
Laravel Junior Code Review: Security and Consistency
4 years ago 00:19:57 45
Junior Code Review: Laravel Routes, Middleware, Validation and more
4 years ago 00:15:30 19
Laravel Junior Code Review: 12 Tips on Everything
14 years ago 00:13:43 12
110825 Mnet Beatles Code - Super Junior (2/4)
4 years ago 00:15:01 12
Junior Code Review: 13 Tips from Cryptocracy Project
4 years ago 00:17:58 20
Junior Code Review: Better Routes, CRUDs and Validation