Junior Code Review: Laravel Routes, Middleware, Validation and more

preview_player
Показать описание
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:

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

"Juniors don't be afraid to show your code. Seniors don't attack the juniors that the code is bad. We all start somewhere."

mathiasdesouza
Автор

The delete action using "GET" instead of "DELETE" might expose the user to CSRF attacks. That one should be changed for security. (I hope this observation can be useful for someone).

DuilioPalacios
Автор

I liked the video format. And today I noticed that I'm not a junior anymore.

EsronDtamar
Автор

Yes ! Please ! More code reviews videos ! As a junior I can't state how valuable this is. Thanks for everything !

ShekenZZZ
Автор

Omfg. This is like those "very satisfactory" videos with people slicing colored clay, but with coding.

Such a rewarding feeling to watch.

gyohza
Автор

Im experienced web developer, but a c# one. Have no idea why this video appears in my recommendation, but it's ASWESOME.
For me It was a good overview of PHP/Laravel development). Without any experience I understood 100% of it! Thanks.

rstart
Автор

Your one video > Tones of Learn laravel from strach for Inermediates.Thank you Sir, have a better life everyday.

justnothing
Автор

i agree with you on this statement
"as junior dont be afraid to make mistake (but take responsibilty on that)"
"as senior dont attack your junior (we have to start somewhere right)"
huge respect to you!!

rikiamaru
Автор

This means a lot of helpful to jr. developers to learn.
I have seen many videos. many of video creators Assumes that you were aware about the mistakes that users do. but actually the fresher or junior developer wasn't aware of that. *And this is really fantastic video to identify mistakes and correct them*.

tarangpanchal
Автор

The command in PHPStorm to highlight the next occurrence of a word is Ctrl+G on Mac and Alt-J on windows. On vscode it’s ctrl+D. Rather than moving the mouse and highlighting line by line
Great content!

gdog
Автор

Hello sir
You are the most humble and kind person in the region. You always appreciate others for working hard instead of dominating them for mistakes, and helping them grow each time. I think your contribution to this growth of laravel is remarkable.

Help is only help, whatever form it may be given, and I am grateful for your efforts and love.

SunilKumawatbfcj
Автор

I have completed my last project fully with query builder only. This video help me to under stand the standard of code. Thank you so much sir. You videos help me lot

nagaindra
Автор

I've never written a line in PHP but still watched till the end, you never know when you gonna need this.
Great review, very satisfactory.

chaosthelegend
Автор

That $request->validated() and $fillable combination was on another level. Got to learn something new 😄

xshashwat
Автор

Amazing concept! Please do as many videos as you can easily. This is great content. Keep up the awesome work. 👍👍👍

junaidahmad
Автор

i just watched till 1:13 and i start loving you.... This is how juniors shud be treated... Love You Sir. <3

muhammadhashiranwaar
Автор

after watching this video i’am not a junior developer anymore 😁, more videos like this sir. this is awesome, thank you povilas ❤️

SmailPeche
Автор

Great video. As for multi-line edit. Just double tap ctrl, and use arrow down to select all lines. Hit "End" to get the cursor to the same location on each line. Now remove the middleware in one go.

resin
Автор

Eres grande amigo. No porque sepas mucho, sino por darte el tiempo de ayudar a los que saben menos. Saludos desde Chile.

camilorojas
Автор

Thanks for your videos Povilas, I am also beginner laravel Developer, i'm your fan, your videos are very helpful. When I start earning money i will obviously buy your " eloquent course"

altynbekmamasadykov