I'm working to show double data well in my routes.
From backend I insert the correct numbers but in the route it shows me my number but with other numbers.
As in my two attached images. enter image description here enter image description here
I'm looking for the october documentation but every attempt has failed.
My code in routes.php is:
Route::get('api/{lang}/to_add', function( $lang ) {
$to_adds = To_adds::with( 'image' )->get();
foreach ($to_adds as $k => $v) {
$to_adds[$k] = $v->lang($lang);
}
return $to_adds;
});
Someone who can help me?