After the transaction function or after everything even the return view?

|
faissaloux 2022-08-28 16:52:53
I think you need to remove it
Denno_IT 2022-08-28 16:53:01
faissaloux 2022-08-28 16:51:19
For this error you just need to close it first

after the transaction function or after everything even the return view??

faissaloux 2022-08-28 16:53:28
I need to know what you trying to do here
Denno_IT 2022-08-28 16:53:43
faissaloux 2022-08-28 16:52:41
I don’t know what’s th point from that loop

its a POS system.. like someone can be purchasing 10 items another guy 1 and another 2… like that is why i implemented loop

Denno_IT 2022-08-28 16:54:04
where i dont know if this is the issue here.. but that is how my reasoning came out as
Denno_IT 2022-08-28 16:54:26
yeah.. there are three tables. but working on the same view..
faissaloux 2022-08-28 16:54:35
You know what!
Denno_IT 2022-08-28 16:54:56
like there is the order itself, the transaction and the customer tables all values are returned returned from this controller
faissaloux 2022-08-28 16:54:58
for now just close the for loop and the transaction function then we discuss other things
Denno_IT 2022-08-28 16:56:00
laravel_discuss-135902.jpg

Denno_IT 2022-08-28 16:56:12
laravel_discuss-135903.jpg

faissaloux 2022-08-28 16:56:24
Still need to close the transaction
faissaloux 2022-08-28 16:56:36
use });
faissaloux 2022-08-28 16:57:13
Close the loop before the return
faissaloux 2022-08-28 16:57:56
What’s the point of the loop in the first place
faissaloux 2022-08-28 16:58:06
IDK
Jonathan Antunes 2022-08-28 16:58:32
Denno_IT 2022-08-28 16:56:00

an example

faissaloux 2022-08-28 16:58:41
That’s why I need from him just to close the loop and the function then we discuss further
Jonathan Antunes 2022-08-28 16:58:42
laravel_discuss-135915.jpg

Denno_IT 2022-08-28 17:00:02
faissaloux 2022-08-28 16:58:41
That’s why I need from him just to close the loop and the function then we discuss further

thanks.. it now worked

Denno_IT 2022-08-28 17:00:25
but the looping part doesnt work.. is this the corret way to implement loop in laravel?
faissaloux 2022-08-28 17:00:58
Why you returning twice there!!
Denno_IT 2022-08-28 17:03:06
faissaloux 2022-08-28 17:00:58
Why you returning twice there!!

like i am making sales.. where i need all the sales to be made can be printed on the same receipt and as well passed to the db at a go

Denno_IT 2022-08-28 17:03:37
i have not done such project before. maybe you cant correct me incase am doing it in the wrong way
faissaloux 2022-08-28 17:04:33
I just can’t get what u wanna do
faissaloux 2022-08-28 17:04:43
$product_id<count($request->product_id) !!!
Denno_IT 2022-08-28 17:08:14
faissaloux 2022-08-28 17:04:43
$product_id<count($request->product_id) !!!

inside the loop?

Denno_IT 2022-08-28 17:09:00
like everytime the jquery dublicate the field… new values will be recorded.. when these values are recorded.. they need to be recorded in the db
Ronnie 2022-08-28 17:26:32
Its always advisable for one to use for each
nagakishorekosuri 2022-08-28 18:15:52
Hai all artisans….

What is the best Visual CRUD Generator ?

Or

Best way to create it ?

MahdyAdel 2022-08-28 18:53:23
How to do auth copilot free in vscode
Denno_IT 2022-08-28 19:40:35
laravel_discuss-135940.jpg
Hello.. Can someone help me here… I am trying to dublicate the table fields using jquery but it seems not to work
N_Ibrokhim 2022-08-28 20:00:06
laravel_discuss-135942.jpg
whats this error?
N_Ibrokhim 2022-08-28 20:00:22
laravel_discuss-135943.jpg

faissaloux 2022-08-28 20:05:29
N_Ibrokhim 2022-08-28 20:00:22

Replace update() by save()

|