I notice that there is something always attach to when I return an array. my method
public static function getFormAdress(){
$co = DB::select('SELECT * FROM form_adress');
return $co ;
}
in blade file
$getFormAddres = Helpers::getFormAdress() ;
dd( $getFormAddres);
out put is that
0 => {#1039 ▼
+"id": 1
+"name": "Mr"
}
1 => {#1040 ▼
+"id": 2
+"name": "Mrs"
}
2 => {#1041 ▼
+"id": 3
+"name": "Ms"
}
3 => {#1042 ▼
+"id": 4
+"name": "Miss"
}
4 => {#1043 ▼
+"id": 5
+"name": "Lord"
}
5 => {#1044 ▼
+"id": 6
+"name": "Lady"
}
6 => {#1045 ▼
+"id": 7
+"name": "Prof"
}
7 => {#1046 ▼
+"id": 8
+"name": "Dr"
}
8 => {#1047 ▼
+"id": 9
+"name": "Sir"
}
]
what does #1039 over here? and how I make that array should return like 1[ name:'Mr"]