13 Laravel Tips in 10 Minutes: October 2024
HTML-код
- Опубликовано: 8 фев 2025
- A monthly tradition of the most valuable tweets for that month.
Support the channel by checking out my products:
My Laravel courses: laraveldaily.c...
Filament examples: filamentexampl...
Livewire Kit Components: livewirekit.com
Other places to follow:
My weekly Laravel newsletter: us11.campaign-...
My personal Twitter: / povilaskorop
Very useful thanks!
My favourite tips:
1. data_get() / fluent()
2. Carbon age property
Great video! The Pivot model is also useful when dealing with uuids, when you have a pivot table that has uuids you can create the pivot model and add HasUuids trait to it :)
Hey, I'm really interested in learning how this works. I'm still kind of new to this. I have a side project that generates uuids for guests and merge it to Event qr code which has already been generated and cached. My think Is that this way I don't have to generate new qr code for guest any time guest is created. Any insight?
@@joshuagfttcwatchman6210 Sorry, can't help you, good luck though :) But aside from that, just to clarify, my comment was about dealing with uuids in general, so for example when you have a pivot table for many to many relations and you use uuids for id of that table you need to create a pivot model and add the HasUuids trait to it otherwise it wont work because Laravel will expect that table to have normal ids, or so i think :D
@@Mimi019283 It's all good. I'll look into that though. Cheers.
laragon still the winner for me. simple version management for web server and database are fine as wine
many thanks it is very useful
Useful tips🎉
I could add anything to a carbon object and would get the desired result. 😀
My GitHub comment at line 54 on Laravel installation 1:38. The composer create-project command should be there in the docs instead of being removed silently. Not a good edit by Taylor
agreed, not taylor, but the team in general.
How often do you guys install a new Laravel for a project, instead of just forking your own custom "starter pack"?
In most cases, I start from Laravel and Breeze
Useful tips, thank you
My favorite one
$user->name ??= 'guest'; because it's shorter and straightforward for me.
Also, The carbon tips were great too
The much I like it is the data_get() / fluent() / $object->get()