Do you know you can use auth()->id() instead of auth()->user()->id ? It's shorter and it returns null instead of throwing "Attempt to read property 'id' on null" when the user is logged out.
@JoeSmith-kn5wo5 күн бұрын
That is what always use. Definitely much cleaner code.
@hydrokat1434 күн бұрын
Now i know. Thanks!
@smokeyoak4 күн бұрын
Good to know
@LaravelPHP22 сағат бұрын
I did...not. Thanks 👍 (Christoph)
@SahilKumar-bt2pf5 күн бұрын
composer run dev is cool.
@KJimah5 күн бұрын
Laravel always cooking. Nice
@shaz3e5 күн бұрын
Great additions to the framework I am a big fan of collection
@LaravelPHP22 сағат бұрын
You and me both! (Christoph)
@BelgranoK5 күн бұрын
I need the Taylor's comand to run when sail starts.
@aykutcn5 күн бұрын
copy your preferred runtime from the sail folder in vendor. then edit your docker-compose.yaml to use that folder as your main container. then edit your custom containers entrypoint.
@gamingsites10414 күн бұрын
composer run dev is awesome, thanks for the share really appreciated
@LaravelPHP22 сағат бұрын
Glad you like it! (Christoph)
@B0re_d22 сағат бұрын
What’s the performance difference when using attributes vs usual implementations?
@jnjmedia8321Күн бұрын
the code $this->route(‘podcast’) is a bit confusing as we use the route() helper to call a route by its name and not the model binding
@momodjah-low69444 күн бұрын
Does Laravel provide a built-in method to automatically check all relationships for a model ?
@williandamascenomusic5 күн бұрын
composer run dev is awesome
@LaravelPHP22 сағат бұрын
Glad you like it 🙏 (Christoph)
@SXsoft994 күн бұрын
regarding currency if only input type="number" would work the same on all browsers and it wouldn't change in a stupid way based on language or the settings on your computer
@GijsBeijer4 күн бұрын
Euro sign is in front of the numbers in the Netherlands as well 😅
@LaravelPHP22 сағат бұрын
🙈 (Christoph)
@dominikbetlej71145 күн бұрын
🎉 this request f.. my brain ;d rly this is awesome
@MarlonLCosta5 күн бұрын
which theme do u use
@LaravelPHP22 сағат бұрын
It is a custom PhpStorm theme from my Mastering PhpStorm course. called RIOS (Christoph)
@druganov9625 күн бұрын
1:40 completely off topic, but in europe we do actually put the euro sign in front of the digits, at least, in the netherlands, belgium, france and spain
@HadrienX5 күн бұрын
France puts the euro sign at the end. I know Cyprus puts it at the begining.
@druganov9625 күн бұрын
@@HadrienX oh shit really, I remember when I was in Paris they used to put it in front, maybe it differs per region/province
@HadrienX5 күн бұрын
@@druganov962 I am living in Paris city and I never see it :D
@vaultdweller9665 күн бұрын
@@druganov962maybe it was for foreign tourists? I'm french and I can confirm that we put it at the end. But obviously it's perfectly readable anyway...
@bandit12--Күн бұрын
I thought this too, he can't speak for all of europe