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
781
276
2 months ago 00:08:28 30
Лучшие бесплатные курсы и книги по Python в 2024 год.
2 months ago 00:26:49 1
Устраиваюсь кодером НЕ УМЕЯ кодить [ Пранк работодателей ]
2 months ago 00:02:07 1
🎵🌟New Songs Of The Week By Scandinavian Participants (June 15 - June 21) | New Music Eurobladet
2 months ago 00:03:08 1
🇩🇰Top-10 entries from Denmark at Eurovision (2014-2024) by amount of points given by televote
2 months ago 00:12:33 1
С нуля до 100 000 за полгода | Что должен знать JUNIOR PYTHON разработчик в 2023
2 months ago 00:08:42 1
Как изменять голос в играх | Как говорить женским голосом | Говорим голосами блогеров
2 months ago 00:03:11 1
🇮🇸Top-10 entries from Iceland at Eurovision (2014-2024) by amount of points given by televote
2 months ago 00:00:57 1
Joost Klein - Florida 2009 (english translation / lyrics) | 🇳🇱 Netherlands Eurovision 2024
2 months ago 00:04:39 5
Dianne Durham Gymnastics Tribute (1968 - 2021)
2 months ago 00:14:15 1
BREAKING ALERT! The Draft Is Passes Defense Draft Bill-Men Ages 18-26!
2 months ago 00:31:15 1
EXCLUSIVE! Hunter Biden’s Baby Mama Lunden Roberts REVEALS ALL!
2 months ago 00:04:02 1
I Want to Know What Love Is - Gabriel Henrique, Coral Black To Black
2 months ago 00:41:18 1
Frontend Собеседование с разбором. Путь к трудоустройству 2024
3 months ago 00:36:17 1
Hush Money Mistrial For Trump? What BIG Events Could Come Soon.. Juanito Explains..
3 months ago 00:13:06 1
ВОТ ПОЧЕМУ ТЫ БРОСИШЬ ПРОГРАММИРОВАНИЕ! Твои главные ошибки.