Dive Deeper with Actions

  Рет қаралды 5,851

Laracasts

Laracasts

Күн бұрын

Пікірлер: 16
@relaxationtube2388
@relaxationtube2388 4 ай бұрын
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
@gdogmalone
@gdogmalone 4 ай бұрын
GREAT, video. Learnt loads 🙌
@dragoninfintyskull
@dragoninfintyskull 4 ай бұрын
Full course on actions with test please….
@ParisBenjaminsound
@ParisBenjaminsound 3 ай бұрын
Thanks
@popforall
@popforall 4 ай бұрын
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?
@obadaalzidi6452
@obadaalzidi6452 4 ай бұрын
Thanks, that's great ! Just for clarity, shouldn't the AwardExperienceTest be a Unit test ?
@VuTuanIT
@VuTuanIT 4 ай бұрын
A unit test should be pure and not involve database transactions, otherwise, place it into feature tests
@houseandhobby6971
@houseandhobby6971 4 ай бұрын
Oops I dropped in to learn about class action lawsuits to avoid the developer.
@yoho403
@yoho403 4 ай бұрын
Wouldn't a trait be better in this case to avoid creating one time use objects?
@shamwela_
@shamwela_ 2 ай бұрын
Why don't you just create a reusable function instead of creating "Action" classes for every little thing that you want to do.
@mdkieran
@mdkieran Ай бұрын
For consistency. Some actions indeed may be small, but at least you know where they all are and can easily find them. Also, if you need to enhance their capabilities then you can by introducing private methods and properties. You could also build your actions in such a way that you can process them as background jobs if you need to. There's just a lot more potential with them than standard functions.
@victoranski1
@victoranski1 7 күн бұрын
My friend Actions are good way to do DRY But using mocks when you have a db connection is just asking for future refactoring of your tests Please learn how to do black box testing
@mahmoud-bakheet
@mahmoud-bakheet 4 ай бұрын
You are the other Jeffrey either 😂
@arash5094
@arash5094 4 ай бұрын
Please integrate in mongodb to next version of laravel you think it's time don't you
Using Generics with PHP
25:55
Laracasts
Рет қаралды 15 М.
The Intermediate Developer Trap
18:39
Laracasts
Рет қаралды 24 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Find Your Fit
13:50
Laracasts
Рет қаралды 4,1 М.
Here's What You Missed at Laracon
12:21
Laracasts
Рет қаралды 2,9 М.
Execute Code After a Response is Returned?
14:00
Laracasts
Рет қаралды 10 М.
Laravel Roles/Permissions: Complex Multi-Clinic Project
13:03
Laravel Daily
Рет қаралды 12 М.
The Stories We Tell Ourselves
15:54
Laracasts
Рет қаралды 4,4 М.
Laravel Actions: The Secret Sauce
4:06
Nuno Maduro
Рет қаралды 8 М.
PhpStorm for Laravel Developers - 3 Hour Full MasterClass
2:35:29
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.