You need to change the current data in the string
'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?