Junior Code Review: Laravel API Controller - 8 Tips for Improvement
In this video, I will go through one Laravel API Controller and suggest some improvements. Would you add anything else?
00:00 Intro
00:54 Reformat for Readability
02:16 Get Auth User ID
02:50 2 DB Queries into 1
04:07 Form Request validated
05:17 Variable Naming
05:53 If-else to Try-catch
07:05 Route Model Binding
08:09 Early Returns
Related video: Danger of Using $request-all(), and How to Protect
Playlist of more code reviews:
- - - - -
Support the channel by checking out my products:
- My Laravel courses membership:
- Laravel QuickAdminPanel:
- Livewire Kit Components:
- - - - -
Other places to follow:
- My weekly Laravel newsletter:
- My personal Twitter:
20 views
72
20
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
ВОТ ПОЧЕМУ ТЫ БРОСИШЬ ПРОГРАММИРОВАНИЕ! Твои главные ошибки.