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 • 4 Ways to Auto-Fill Field Value in El...
- - - - -
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
Смотрите видео Laravel Junior Code Review: 12 Tips on Everything онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Laravel Daily 16 Сентябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 75,16 раз и оно понравилось 2.5 тысяч людям.