Backend Development for Flutter devs: Beginner (Nodejs & Typescript)
Комментарии
that's super handy. wont use it that often but can picture some use-cases for it
itsmillrtime
Now I know there is a special increment method 😅
Thanks
ismoil
Nice trick 👌
I have a question if I use
DB::beginTransaction()
Try{
$product->update()
}catch(){
DB::rollback()
}
DB::commit()
Does the eloquent script execute as the transaction body or not ?
ahmedbenrhouma
why do you store "total" when you also store "in_store" and "in_stock"? It's simply redundant and doesn't follow the third normal form. you can make an accessor for total.