Рет қаралды 11,119
Another review of a code submitted by one of you in the audience, with a lot of topics to cover.
00:00 Intro
01:11 Naming Things Properly
02:09 Route Grouping
03:33 "Special" Route with dd()
04:37 Global Middleware with Redirect
05:23 This Should NOT Be in Controller
06:45 "Cool" Laravel Collections
08:07 Too "Fat" Model?
09:23 Config Helper
09:48 Don't Use $request-all()
10:22 Shorter Way to Create DB Record
11:25 No Extra Variables/Methods
12:29 Ternary Operator or If-Else
13:26 Eloquent firstOrCreate
Related links:
- Project Repository: github.com/dotangad/cryptocra...
- Intro to Inertia.js with Laravel Breeze Example • Intro to Inertia.js wi...
- Danger of Using $request-all(), and How to Protect • Danger of Using $reque...
- - - - -
Support the channel by checking out our products:
- Enroll in my Laravel courses: laraveldaily.teachable.com
- Try our Laravel QuickAdminPanel: bit.ly/quickadminpanel
- Purchase my Livewire Kit: livewirekit.com
- View Laravel Code Examples: laravelexamples.com
- Subscribe to my weekly newsletter: bit.ly/laravel-newsletter