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

Комментарии • 14

  • @relaxationtube2388
    @relaxationtube2388 3 месяца назад +7

    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 3 месяца назад +1

    GREAT, video. Learnt loads 🙌

  • @ParisBenjaminsound
    @ParisBenjaminsound Месяц назад

    Thanks

  • @obadaalzidi6452
    @obadaalzidi6452 3 месяца назад

    Thanks, that's great !
    Just for clarity, shouldn't the AwardExperienceTest be a Unit test ?

    • @VuTuanIT
      @VuTuanIT 2 месяца назад

      A unit test should be pure and not involve database transactions, otherwise, place it into feature tests

  • @dragoninfintyskull
    @dragoninfintyskull 3 месяца назад

    Full course on actions with test please….

  • @houseandhobby6971
    @houseandhobby6971 3 месяца назад +2

    Oops I dropped in to learn about class action lawsuits to avoid the developer.

  • @popforall
    @popforall 3 месяца назад

    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?

  • @yoho403
    @yoho403 2 месяца назад

    Wouldn't a trait be better in this case to avoid creating one time use objects?

  • @mahmoud-bakheet
    @mahmoud-bakheet 3 месяца назад

    You are the other Jeffrey either 😂

  • @shamwela_
    @shamwela_ 22 дня назад

    Why don't you just create a reusable function instead of creating "Action" classes for every little thing that you want to do.

  • @arash5094
    @arash5094 3 месяца назад

    Please integrate in mongodb to next version of laravel you think it's time don't you