Whether to insert the data?

You need to change the current data in the string
Do this:
 'total_rates' => DB::raw('total_rates + 1'), // it's still okay
 'rate_total' => DB::raw('rate_total +' . $total) // and here I have a question

You need to change data relative to current data
Found this method, but will not have any problems with any injections?
But I found nothing matching this problem and everything is always suggest to use this method

Now, to leave it out or need something different to do?
June 3rd 19 at 20:22
1 answer
June 3rd 19 at 20:24
RAW for exceptional cases, and that the meaning of bilder then all is lost.

I would have used, but the problem is that there are 7 fields to be converted and each with different quantity
I would like to still all one request to make - Holly.Bahringer commented on June 3rd 19 at 20:27
And I sort of asked
I wonder if it's safe to do the same way to use it or not - Holly.Bahringer commented on June 3rd 19 at 20:30

Find more questions by tags Laravel