Discover New PHP Attributes, Number Defaults, and Taylor's New Composer Script 🧙

  Рет қаралды 13,128

Laravel

Laravel

Күн бұрын

Пікірлер
@shaz3e
@shaz3e 2 ай бұрын
Great additions to the framework I am a big fan of collection
@LaravelPHP
@LaravelPHP 2 ай бұрын
You and me both! (Christoph)
@aidan_sullivan_
@aidan_sullivan_ 2 ай бұрын
Another great video! You are killing it Christoph! Keep up the good work. Loved the ending!
@LaravelPHP
@LaravelPHP 2 ай бұрын
thanks for the inspiration Aidan and the nice words 🙏 (Christoph)
@SahilKumar-bt2pf
@SahilKumar-bt2pf 2 ай бұрын
composer run dev is cool.
@KJimah
@KJimah 2 ай бұрын
Laravel always cooking. Nice
@gamingsites1041
@gamingsites1041 2 ай бұрын
composer run dev is awesome, thanks for the share really appreciated
@LaravelPHP
@LaravelPHP 2 ай бұрын
Glad you like it! (Christoph)
@vaultdweller966
@vaultdweller966 2 ай бұрын
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-kn5wo
@JoeSmith-kn5wo 2 ай бұрын
That is what always use. Definitely much cleaner code.
@hydrokat143
@hydrokat143 2 ай бұрын
Now i know. Thanks!
@smokeyoak
@smokeyoak 2 ай бұрын
Good to know
@LaravelPHP
@LaravelPHP 2 ай бұрын
I did...not. Thanks 👍 (Christoph)
@kwekuhammondonline
@kwekuhammondonline 2 ай бұрын
Great video! In the authorize method you could do return $product->user->is($user)
@LaravelPHP
@LaravelPHP 2 ай бұрын
Oh nice one, true. thanks 👍 (Christoph)
@BelgranoK
@BelgranoK 2 ай бұрын
I need the Taylor's comand to run when sail starts.
@aykutcn
@aykutcn 2 ай бұрын
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.
@B0re_d
@B0re_d 2 ай бұрын
What’s the performance difference when using attributes vs usual implementations?
@dominikbetlej7114
@dominikbetlej7114 2 ай бұрын
🎉 this request f.. my brain ;d rly this is awesome
@jnjmedia8321
@jnjmedia8321 2 ай бұрын
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
@williandamascenomusic
@williandamascenomusic 2 ай бұрын
composer run dev is awesome
@LaravelPHP
@LaravelPHP 2 ай бұрын
Glad you like it 🙏 (Christoph)
@druganov962
@druganov962 2 ай бұрын
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
@HadrienX
@HadrienX 2 ай бұрын
France puts the euro sign at the end. I know Cyprus puts it at the begining.
@druganov962
@druganov962 2 ай бұрын
@@HadrienX oh shit really, I remember when I was in Paris they used to put it in front, maybe it differs per region/province
@HadrienX
@HadrienX 2 ай бұрын
@@druganov962 I am living in Paris city and I never see it :D
@vaultdweller966
@vaultdweller966 2 ай бұрын
​@@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--
@bandit12-- 2 ай бұрын
I thought this too, he can't speak for all of europe
@momodjah-low6944
@momodjah-low6944 2 ай бұрын
Does Laravel provide a built-in method to automatically check all relationships for a model ?
@SXsoft99
@SXsoft99 2 ай бұрын
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
@GijsBeijer
@GijsBeijer 2 ай бұрын
Euro sign is in front of the numbers in the Netherlands as well 😅
@LaravelPHP
@LaravelPHP 2 ай бұрын
🙈 (Christoph)
@doesitmatter
@doesitmatter 2 ай бұрын
i had to go look it up.. 🤦
@alesmohoric9130
@alesmohoric9130 2 ай бұрын
What is this tool where you can execute php code directly?
@brauliobernardo660
@brauliobernardo660 2 ай бұрын
Tinkerwell
@object-orientedprograming6709
@object-orientedprograming6709 2 ай бұрын
What about pail in windows?
@iam.masoudsamimi
@iam.masoudsamimi 2 ай бұрын
❤ composer run dev ❤
@LaravelPHP
@LaravelPHP 2 ай бұрын
❤️
@afolabiabiodun7582
@afolabiabiodun7582 2 ай бұрын
Let have php helper that convert amount to words
@LaravelPHP
@LaravelPHP 2 ай бұрын
This gets you very close: laravel.com/docs/11.x/helpers#method-number-for-humans (Christoph)
@MarlonLCosta
@MarlonLCosta 2 ай бұрын
which theme do u use
@LaravelPHP
@LaravelPHP 2 ай бұрын
It is a custom PhpStorm theme from my Mastering PhpStorm course. called RIOS (Christoph)
@user-cf5uf7vf2g
@user-cf5uf7vf2g 2 ай бұрын
hmm.. not math function
We Love PHP Attributes
10:02
Laravel
Рет қаралды 13 М.
Build Your Own Custom Auth System with Fortify
20:14
Laravel
Рет қаралды 9 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
How To Build a Laravel Package 📦
39:50
Laravel
Рет қаралды 9 М.
4 Problems with Eloquent Soft Deletes (and Two Alternatives)
9:05
Laravel Daily
Рет қаралды 14 М.
Let's talk about Events and Listeners
8:23
Laravel
Рет қаралды 7 М.
I was too dumb for Laravel. Then they fixed it.
10:33
Theo - t3․gg
Рет қаралды 78 М.
Laravel Gems - Pipelines 💎
15:21
Laravel
Рет қаралды 10 М.
PHP. Spiral. Benchmarking web frameworks
17:52
Yurij Uvarov
Рет қаралды 1,5 М.
Атрибуты в PHP. Какую пользу даёт применение attributes
16:23
Просто о Web Development. CutCode
Рет қаралды 8 М.