andriajah Sat Oct 2021 1 year ago

Laravel Junior Code Review: 12 Tips On Everything

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:
- PSR-1: Basic Coding Standard https://www.php-fig.org/psr/psr-1/
- Laravel Love: Likes and Dislikes for Eloquent Models: https://laravel-news.com/laravel-love
- 4 Ways to Auto-Fill Field Value in Eloquent https://www.youtube.com/watch?v=6Woa7mkox48&

- - - - -
Support the channel by checking out our products:
- Enroll in my Laravel courses: https://laraveldaily.teachable.com
- Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Purchase my Livewire Kit: https://livewirekit.com
- View Laravel Code Examples: https://laravelexamples.com
- Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter