I have an issue undefined index to my blade view in laravel 5.6. I have to run my URL localhost:8000/test while am getting an error Undefined index: Domains.if pass some values in the url like localhost:8000/test?tld=test&sld=info it is working perfectly.please suggest any solution.
My View page Code
@foreach($result['Domains']['Domain'] as $key => $value)
@if($key == 'Name')
<b></b> -
@endif
@if($key == "RRPText")
<b></b>
@endif
@endforeach
@foreach($result['Domains']['Domain']['Prices'] as $key => $value)
@if($key == "Registration")
<b></b>
@endif
@endforeach
My Controller Code
$sld = $request['sld'];
$tld = $request['tld'];
$response = file_get_contents('https://reseller.enom.com/interface.asp?command=check&sld='. $sld .'&tld='. $tld .'&uid=resellid&pw=resellpw&responsetype=xml&version=2&includeprice=1&includeproperties=1&includeeap=1');
$data = simplexml_load_string($response);
$configdata = json_encode($data);
$final_data = json_decode($configdata,true);
Please suggest any solution
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2J9ondq
via IFTTT
Aucun commentaire:
Enregistrer un commentaire