9 Tips for Shorter Laravel Code

Some random things that you can write in a shorter way, with various Laravel helpers. 00:00 Intro 00:19 Tip 1. Shorter @if auth()-check() 01:14 Tip 2. Shorter Auth user in Blade 02:37 Tip 3. Shorter @foreach 03:31 Tip 4. Shorter Carbon::now() 04:31 Tip 5. Shorter Log::info() and dd() 06:01 Tip 6. Shorter abort() 07:07 Tip 7. Shorter CSRF and Method 08:05 Tip 8. Shorter Hash::make() 09:12 Tip 9. Shorter redirect()-back() - - - - - Support the channel by checking out our products: - Try our Laravel QuickAdminPanel: - Enroll in my Laravel courses: - Purchase my Livewire Kit: - Subscribe to my weekly newsletter:
Back to Top