Dive Deeper with Actions
HTML-код
- Опубликовано: 24 ноя 2024
- In Jeffrey's recent Larabit ( • The Intermediate Devel... ) ,he discussed the intermediate trap and how you can use actions to keep code clean and understandable. You know, I'm something of an action man myself, so I'd like to take it one step further. Strap in, it's time for Action-ception.
Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: laracasts.com
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way
Good lessons here.
Perhaps it’s beyond the scope of this Larabit but putting those magic numbers (experience points) into an enum or some sort of experience class will definitely improve this workflow
GREAT, video. Learnt loads 🙌
Thanks
Thanks, that's great !
Just for clarity, shouldn't the AwardExperienceTest be a Unit test ?
A unit test should be pure and not involve database transactions, otherwise, place it into feature tests
Full course on actions with test please….
Oops I dropped in to learn about class action lawsuits to avoid the developer.
What if I have a database transaction in some of my sub actions
Should I add another transaction to the parent actions or what should I do?
Wouldn't a trait be better in this case to avoid creating one time use objects?
You are the other Jeffrey either 😂
Why don't you just create a reusable function instead of creating "Action" classes for every little thing that you want to do.
Please integrate in mongodb to next version of laravel you think it's time don't you