Laravel Checklister. Part 16/29: Mark Tasks "Done" with Livewire

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

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

  • @narkocat
    @narkocat 3 года назад +6

    IMHO deep if/else trees are not good, better to do something like if (!task) {return;} than if ($task { do lots of lines stuff here} and a lot of times you can avoid using else with restructuring code to do returns insead.

  • @exodusdev2394
    @exodusdev2394 3 года назад +1

    in cases like the opened_tasks array i prefer to use setting the keys too e.g.: $this->opened_tasks[$task_id] = $task_id; then instead of in_array function just using isset which is faster checking also deleting element is easier with unset and since the key and value are same the in_array can also be used

    • @thesea2201
      @thesea2201 3 года назад

      Hi, I spam click between 2 tasks and only the second task not fire click event. Did you face with this issue?

  • @user-bu7ck7cm9j
    @user-bu7ck7cm9j 3 года назад +1

    Is it possible to implement functionality on Laravel like in NEOS (live editing) ?

  • @ramicchik3152
    @ramicchik3152 2 года назад

    Great tutorlial, I really appreciate your work here!. Here's my question: each checklists have 1 user_id which means only one user can sync from admin by clicking it from sidemenu, right? What if your cliens asks okay, every users can have same checklists etc.

  • @davidabadi9001
    @davidabadi9001 3 года назад +1

    Shouldn't it be $user_task = Task::where('task_id', $task_id)->where('user_id', auth()->id())->first(); ?

    • @JustinByrne1337
      @JustinByrne1337 3 года назад +1

      I was thinking this also, as if another user was to click it there would already be a record in the database

  • @Simone-ft2cg
    @Simone-ft2cg 3 года назад

    Hi Povilas Great video as always! Please could you make a video on an omr scanner on laravel? (I saw a package by Jansen Felipe but I don't understand how does it work)

    • @LaravelDaily
      @LaravelDaily  3 года назад +1

      I haven't worked with it so can't reallake a video on it

  • @k_a_r_i_s-1812
    @k_a_r_i_s-1812 3 года назад

    thank you for the video, do you mind making a video on how to send mail to an outlook 365 account from laravel through hmailserver?

    • @LaravelDaily
      @LaravelDaily  3 года назад

      I haven't worked with office 365 so can't make a video on it

  • @mallesbixie
    @mallesbixie 3 года назад +1

    So it is more a radiolister than a checklister :)

    • @LaravelDaily
      @LaravelDaily  3 года назад +1

      We'll actually change that to a proper CHECKlister in the future videos, when the client changes his mind :)

    • @mallesbixie
      @mallesbixie 3 года назад +1

      @@LaravelDaily we al know, if it's what the client wants... Well

    • @romeosromo6286
      @romeosromo6286 3 года назад +1

      🤣 Yeah I was having a hard time understanding why did the client chose radio buttons over checkboxes.

  • @asyrafirfanjamaludin758
    @asyrafirfanjamaludin758 3 года назад

    early gang