Skip to content
Advertisement

how to store 2 variable value in db withh in laravel?

i am trying to store 2 variable value into a single variable in laravel but fail eg

$var = 123;
 $var1 = 345;
 $customer->ot_location = $var.<br>/$var1;
 $customer->save();

result should be 123
                 /345

Advertisement

Answer

$customer->ot_location = $var.'<br>/'.$var1;
$customer->save();
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement