друзья!!оч нужно вывезти вот такого котика из Вьетнама прямым рейсом в Москву
ищем людей которые смогут с ним полететь
котик Симба готов к перелету, мы за него всё оплатим!ниже будет небольшая история про Симбу,а пока пожалуйста не проходите мимо,сделайте ретвит, это очень важно!
A few people have sent me complicated ways to mute model events in seeders.
You can just use this trait (it's in the docs). I just think it should be the default.
https://t.co/kLIb9EFLNO
As of Laravel 12.18, you can use the new "UsePolicy" attribute to explicitly define the policy that should be used for a model ⚡
This can be useful if you don't store your policies in the default directories!
A cool contribution by @calebdw 🔥
Hey Laravel Developers 👩💻
Let's look at a simple but precious tip for the architecture of your codebase.
The tip is building and calling functions/methods dynamically.
Sometimes we have to call functions based on certain logical conditions, but we can avoid the conditionals and call these functions dynamically if we can represent the function's name in a string.
For example, in the below code snippet, we are calling different discount methods by forming the function name dynamically and then making a call to it.
#laravel #php
Hey Laravel Developers 👩💻
I am surprised to not yet know about the model:show command in Laravel. This command was added in version 9 of Laravel.
We have to pass the name of the model as the argument to the command, and it returns some important details about the model like the database connection of the model, columns and their types, their casts, and also relationships that exist on the model, including those defined in traits.
It is useful to quickly scan and get basic info about the model before doing a deep dive...
#laravel #php
Flutter is dead! 💀 Long live Flutter! 🎉 Despite some recent rumors, Flutter is doing great. Here are some links to check out. ⬇
Michael Thompsen on recent layoffs:
https://t.co/Lb4vyutP18
Hixie on the Flutter team size:
https://t.co/IqffOGANuN
Full Stack Flutter conference: https://t.co/EeuKS5IkcU
Flutter on Google I/O:
https://t.co/yAbyV0wxA2
GEICO on moving to Flutter:
https://t.co/mpcuRJeynB