I want to get userId and other data and saved data a new table, could you please guide me how to achieve this in a short way?

|
alexanderdavii 2020-02-17 12:02:06
Z_Yamin 2020-02-17 11:59:30
how you know which one returend

yes i chenged it , in fails case , it will return 404 , but still the same problem

alexanderdavii 2020-02-17 12:02:25
it return 404 and nothing changed in DB
skys215 2020-02-17 12:09:50
alexanderdavii 2020-02-17 11:56:43

try passing the data using “params” tab in postman

skys215 2020-02-17 12:10:28
Z_Yamin 2020-02-17 11:57:18
this data come from post request, how can i get it in controller and save it in database?

$request->all();

alexanderdavii 2020-02-17 12:11:36
skys215 2020-02-17 12:09:50
try passing the data using “params” tab in postman

well , it’s work here

alexanderdavii 2020-02-17 12:12:17
so we use params for PUT requests , not body
skys215 2020-02-17 12:15:48
alexanderdavii 2020-02-17 12:12:17
so we use params for PUT requests , not body

I think this is postman’s behavior, you can still pass it on body when you write a form or sending api using javascript

loveycom 2020-02-17 12:22:22
rebory 2020-02-17 10:44:04
no data type working for me like decimal, double, float so why i used or try integer for save float value

It is quite possible to store float values in db. I have told you your problem and solution. You want to store float, make sure it in string form. Simple.

loveycom 2020-02-17 12:23:47
Amount was correct because it was directly from the form and in string datatype. Your other variables are from calculations, hence you have float datatypes which is better you cast to string.
loveycom 2020-02-17 12:24:02
But it’s like it is hard for you to trust my solution.
rebory 2020-02-17 12:24:57
loveycom 2020-02-17 12:22:22
It is quite possible to store float values in db. I have told you your problem and solution. You want to store float, make sure it in string form. Simple.

actually i already convert my string value to decimal

loveycom 2020-02-17 12:25:45
No. After your calculations, quote the final value before saving it into db
rebory 2020-02-17 12:26:27
loveycom 2020-02-17 12:25:45
No. After your calculations, quote the final value before saving it into db

ok may be this is last solution for me

loveycom 2020-02-17 12:44:57
laravel_discuss-26820.jpg
Isn’t this what you were trying to achieve?
loveycom 2020-02-17 12:46:15
laravel_discuss-26821.jpg
New Balance after a new transaction
loveycom 2020-02-17 12:47:39
laravel_discuss-26822.jpg
These are the 2 transactions records
loveycom 2020-02-17 12:51:40
If you can’t resolve it, just copy only that function in a text file and send it to me through dm
Z_Yamin 2020-02-17 13:30:31
Z_Yamin 2020-02-17 11:57:18
this data come from post request, how can i get it in controller and save it in database?

help please

rebory 2020-02-17 13:32:43
loveycom 2020-02-17 12:51:40
If you can’t resolve it, just copy only that function in a text file and send it to me through dm

finally i have no other way to solve my problem , so now i save my data in string form thanks for the help.

loveycom 2020-02-17 13:34:51
Ok. You are welcome
2020-02-17 14:44:14
hi aimeos is full free ?
Blast06 2020-02-17 17:16:52
2020-02-16 17:21:56
->validate()

Nope, there’s one called validated that shows only the validated fields

VENKATAPPU 2020-02-17 17:19:10
Hi guys anyone help me. How to do unit test using resource controller?
2020-02-17 17:37:35
One tab login from Google
2020-02-17 17:37:50
Any idea
skys215 2020-02-17 19:04:08
One tab login?
vikaskumar_99 2020-02-17 19:07:38
Hello DEVELOPERs i need some help.
I have a table and there are many columns and columns has different data like this userId:cghcchff, assignmentId:1234868, and so on.
I want to get userId and other data and saved data a new table, could you please guide me how to achieve this in a short way?
skys215 2020-02-17 19:19:20
Use left()
stefan_ssv 2020-02-17 19:47:36
vikaskumar_99 2020-02-17 19:07:38
Hello DEVELOPERs i need some help.
I have a table and there are many columns and columns has different data like this userId:cghcchff, assignmentId:1234868, and so on.
I want to get userId and other data and saved data a new table, could you please guide me how to achieve this in a short way?

insert into %new_table% (select * from %old_table% where userId = 123)

vikaskumar_99 2020-02-17 19:53:21
stefan_ssv 2020-02-17 19:47:36
insert into %new_table% (select * from %old_table% where userId = 123)

Right sir, but i want to use script to get this functionality in laravel.

stefan_ssv 2020-02-17 19:55:32
vikaskumar_99 2020-02-17 19:53:21
Right sir, but i want to use script to get this functionality in laravel.

at least you can use DB::raw(“insert into {$newTable} (select * from {$oldTable} where userId = {$userId})”)

stefan_ssv 2020-02-17 19:56:38
or use regular query builder to build same query with bindings
vikaskumar_99 2020-02-17 19:58:45
But sir problem is, i want to get some specific data into bulking data which stored in a column. @stepan_stepanov
whatheyeff 2020-02-17 20:32:42
Hi there! guys how can I do a query that print all the days between two dates? I know I can wrap it into a foreach, but it will execute n amount of queries and I want to do it in a single execution.
DisneybySherlock 2020-02-17 21:06:53
Hey
Does anyone know how to connect laravel project into xampp???

The project file suppose to be inside the ‘www’ floder but xampp doesnt have any …so what should i do ??

skys215 2020-02-17 21:08:06
Make one or change it
DisneybySherlock 2020-02-17 21:08:58
skys215 2020-02-17 21:08:06
Make one or change it

What do u mean with that ?

DisneybySherlock 2020-02-17 21:09:18
Can u expalin more ?
skys215 2020-02-17 21:12:46
Make a www folder
Or let xampp use the folder which you place you project files
H_Bakhtar 2020-02-17 21:14:50
DisneybySherlock 2020-02-17 21:06:53
Hey
Does anyone know how to connect laravel project into xampp???

The project file suppose to be inside the ‘www’ floder but xampp doesnt have any …so what should i do ??

you can understand persian ?

DisneybySherlock 2020-02-17 21:17:00
skys215 2020-02-17 21:12:46
Make a www folder
Or let xampp use the folder which you place you project files

Ok ill try that
Thank you

DisneybySherlock 2020-02-17 21:17:11
H_Bakhtar 2020-02-17 21:14:50
you can understand persian ?

Unfortunately , no

skys215 2020-02-17 21:19:39
H_Bakhtar 2020-02-17 21:14:50
you can understand persian ?

Click pinned message, there is a link to Persian laravel group

H_Bakhtar 2020-02-17 21:22:55
DisneybySherlock 2020-02-17 21:06:53
Hey
Does anyone know how to connect laravel project into xampp???

The project file suppose to be inside the ‘www’ floder but xampp doesnt have any …so what should i do ??

no need to make www folder in xammp everywhere that is your project go with cmd and serve your project

DisneybySherlock 2020-02-17 21:26:03
H_Bakhtar 2020-02-17 21:22:55
no need to make www folder in xammp everywhere that is your project go with cmd and serve your project

Oh so i have to integrate using cmd?

iamaeshar 2020-02-17 21:26:47
laravel_discuss-26857.jpg
In Controller
iamaeshar 2020-02-17 21:27:10
laravel_discuss-26858.jpg
Output
H_Bakhtar 2020-02-17 21:27:26
DisneybySherlock 2020-02-17 21:26:03
Oh so i have to integrate using cmd?

open the xampp panel it has the cmd

DisneybySherlock 2020-02-17 21:27:59
H_Bakhtar 2020-02-17 21:27:26
open the xampp panel it has the cmd

Yeah
But what should i type in it
How can i mention the project folder name

iamaeshar 2020-02-17 21:28:05
laravel_discuss-26861.jpg
but when i run create method, this error came why ?
|