Question and answer is powered by AnsPress.io
Using laravel 5 version, how to print a single value in the model page from MySQL table when get records from the database.
store selected values in a variable and check its value exists or not use print_r(). if value is print so, you can store a single value in a variable. such as
$name=$data[0]->name; // $data is the array variable, where selected value is store.