Тёмный
No video :(

Laravel Global Model Scopes using PHP Attributes 

Laravel News
Подписаться 24 тыс.
Просмотров 2,4 тыс.
50% 1

Now, you can register global scopes on your Eloquent models using PHP Attributes. In this video, let's look at the new and old booted style of implementing addGlobalScope.
Read More:
→ laravel-news.com/laravel-10-44-0
⏰ Timestamps: Laravel Global Model Scopes
0:00 - Laravel Global Model Scopes introduction
0:21 - Creating a new Laravel model scope
1:32 - Apply the model scope as an attribute
1:57 - Using the booted style to addGlobalScope
2:25 - Conclusion
----------------------------------------------------------------------
JOIN OUR WEEKLY LARAVEL NEWSLETTER
👉 laravel-news.com/newsletter
----------------------------------------------------------------------
➫ Business Inquires: hello@laravel-news.com
#laravel #laravelphp #laraveltutorial

Опубликовано:

 

13 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@alkadoHs
@alkadoHs 6 месяцев назад
You do a great job to show us in action of what's new, Laravel is getting better and better 🎉
@laravelnews
@laravelnews 6 месяцев назад
Thanks!
@yasser.elgammal
@yasser.elgammal 6 месяцев назад
Great, Thank you 🎉
@laravelnews
@laravelnews 6 месяцев назад
You're welcome 😊
@eslammostafa1247
@eslammostafa1247 6 месяцев назад
Thank you waiting for Laravel 11 , it's gonna be amazing!
@laravelnews
@laravelnews 6 месяцев назад
Agreed 👍
@antimac9683
@antimac9683 6 месяцев назад
Thank you.
@bugszone6098
@bugszone6098 5 месяцев назад
very informative
@adampatterson
@adampatterson 6 месяцев назад
I like this, I have been moving my scopes into traits to keep my models cleaner but it causes some funny business when trying to go to method.