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.
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.
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
@@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...
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
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.
That is what always use. Definitely much cleaner code.
Now i know. Thanks!
Good to know
I did...not. Thanks 👍 (Christoph)
composer run dev is cool.
Great additions to the framework I am a big fan of collection
You and me both! (Christoph)
I need the Taylor's comand to run when sail starts.
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.
Great video!
In the authorize method you could do
return $product->user->is($user)
Oh nice one, true. thanks 👍 (Christoph)
What’s the performance difference when using attributes vs usual implementations?
Laravel always cooking. Nice
Another great video! You are killing it Christoph! Keep up the good work. Loved the ending!
thanks for the inspiration Aidan and the nice words 🙏 (Christoph)
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
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
France puts the euro sign at the end. I know Cyprus puts it at the begining.
@@HadrienX oh shit really, I remember when I was in Paris they used to put it in front, maybe it differs per region/province
@@druganov962 I am living in Paris city and I never see it :D
@@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...
I thought this too, he can't speak for all of europe
composer run dev is awesome, thanks for the share really appreciated
Glad you like it! (Christoph)
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
Does Laravel provide a built-in method to automatically check all relationships for a model ?
Euro sign is in front of the numbers in the Netherlands as well 😅
🙈 (Christoph)
i had to go look it up.. 🤦
What is this tool where you can execute php code directly?
Tinkerwell
composer run dev is awesome
Glad you like it 🙏 (Christoph)
What about pail in windows?
Let have php helper that convert amount to words
This gets you very close: laravel.com/docs/11.x/helpers#method-number-for-humans (Christoph)
🎉 this request f.. my brain ;d rly this is awesome
which theme do u use
It is a custom PhpStorm theme from my Mastering PhpStorm course. called RIOS (Christoph)
❤ composer run dev ❤
❤️
hmm.. not math function