Laravel: Flash data in Blade file truncating double value

Home / php / Laravel: Flash data in Blade file truncating double value

Question:
Double value when sent to blade file in Laravel from controller function having 15 digits after decimal is automatically getting rounded off to only 6-7 digits after decimal when printed in blade file. Not getting the reason why is it happening so? I am sending data as follows:return redirect()->to(‘/list’)->with(‘data_record’, $data);
The code in view file (blade) that displays the data is as follows:@foreach(session(‘data_record’) as $item)
{{$item->lat}},{{$item->lng}}
@endforeach


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *