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.
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
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.
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)
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.
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
Hi, I spam click between 2 tasks and only the second task not fire click event. Did you face with this issue?
Is it possible to implement functionality on Laravel like in NEOS (live editing) ?
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.
Shouldn't it be $user_task = Task::where('task_id', $task_id)->where('user_id', auth()->id())->first(); ?
I was thinking this also, as if another user was to click it there would already be a record in the database
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)
I haven't worked with it so can't reallake a video on it
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?
I haven't worked with office 365 so can't make a video on it
So it is more a radiolister than a checklister :)
We'll actually change that to a proper CHECKlister in the future videos, when the client changes his mind :)
@@LaravelDaily we al know, if it's what the client wants... Well
🤣 Yeah I was having a hard time understanding why did the client chose radio buttons over checkboxes.
early gang