Laravel Junior Code Review: 12 Tips on Everything

preview_player
Показать описание
After quite a while, I'm making another junior Laravel code review, with tips on migrations, routing, PSR standards, Route Model Binding, and more.

00:00 Intro
00:40 Make Migrations Work
02:59 Seed Admin User
04:48 Short Project Demo
05:16 Routes: Laravel 7/8 Way
06:24 Method Names: PSR-1
07:01 Extra Routes Before Resources
07:35 Separate Admin Controllers
08:52 Likes/Unlikes - Package?
10:01 Route Model Binding with Slugs
11:29 Middleware in Routes
12:22 Weird protected $recipe
13:43 DRY Controller Code

Related links:

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

Thank you for review. I have to apologize for the code was not working, (migrations issue) and the readme files. I didn't mean any disrespect. I forgot on these important things. My fault.

marekjurica
Автор

In my opinion, this kind of video are the best for junior level developers, like me, to learn from others mistakes. Thank you.

guilhermemoraes
Автор

Please make more of these code reviews because it offers many things to learn at once especially how we should do things. Thank you.

abusayeedshakil
Автор

I love the code reviews, I always learn a lot, thank you

RasceGSalasG
Автор

Please keep doing the junior code reviews. Helps a ton!

brandon_ab
Автор

Thank you! These are extremely helpful. Looking forward to future code reviews.

ljubicasamardzic
Автор

We learners are really feeling blessed to learn daily from you - god bless you.By your laravel tips, series and junior code review i have learned and still being exited watches your every video.

binodthakur
Автор

Nice video. Just one suggestion. For the DRY Controller Code, though the code is becoming shorter it adds the double query to the database. May be it can be made efficient by using an array and then in the if condition adding the image key-value pair in the array and at the end create statement can come.

Something like
public function store(RecipeStoreRequest $request)
{
$recipeArray = [
'title' => $request->title,
'category_id' => $request->category
/* other key=>value pairs */
];


{
/*code for file upload*/
$recipeArray['image'] = $name;
}

$recipe =
}

adityakadam
Автор

After watching all the review code series I feel like i am a junior developer even with few years experience :D. Its more effective way to learn indeed. Thank you for making these efforts. appreciate that.

MuhammadHaseeb
Автор

This is great, I love this kind off video to see how others think or approach things help me see things from different angle

joshuafomubod
Автор

Thanks for the video! Feeling myself much more confident as a Laravel beginner!

armentorosyan
Автор

Truly helpful indeed, such lesson is what I need :) Thanks for your hard work.

geneartista
Автор

These videos are great because it helps enforce standards in coding and shows new devs the standards that they themselves may not be aware of

merdmann
Автор

Please make more of this code reviews. Learnt a lot in just one video. Thank you

kareemlateefyomi
Автор

Thank you for taking your time and teaching us this valuable information.

exikoz
Автор

Thanks. Plz make more like this. Code review is good place to learn.
BTW Im from Russia, I think you have the best laravel YouTube channel in the world!

VitaliyHAN
Автор

For the recipes create/update operation I get his point for the duplication. He doesn't want to run queries twice. Your approach is okay. But I'd prefer to "make an array of common attributes, push conditional attributes to that array" and then create the row. With this approach, I'd need to run create the row only once and no duplication.

sirajul-anik
Автор

thank you, as a junior developer this video really help me how to code better

fandinurrokhim
Автор

With admin prefix, he can also create a new admin.php file on routes folder and separate admin routes from other users.

joelmnisi
Автор

Nice video,
I'm currently having multiple projects using Laravel, I currently use Laravel module package to modulate my application

gtsmeg