私はstudents_recordテーブルを持っていると私はそこにJSON形式で(laravel 5.3)
$students_data = Students::findOrFail($id);
$attributes = DB::table('studentsdata')->where('id', $student_data->id)->select('attributes')->first();
$result = json_decode($student_data->meta_attributes);
echo "<pre>";
print_r($result);
die;
を私のデータを保存しています表示された結果と私は単に名前を得ることになりました
<label> Name</label>
<div class="col-md-8">
<div class="input-icon right">
<input type="text" name="name" value="{{isset($result->name) ? $result->name : '' }}" />
</div>
</div>
そのフィールドに私の名前を与えることは今良いです
iは、その配列のすべての国が、私は私のクエリに対して上記の入力を示して、私はここで私は$結果を持っているそれを得ることができますどのように助けてください私の国のフィールドでも、国の配列を取得したい
<label> Country </label>
<div class="col-md-8">
<div class="input-icon right">
<select id="country" multiple name="country[]" onchange="
getValue('opens-clicks-region', 'student_tracking', 'region', 'country', this.value, this.id)" disabled="disabled">
<option value=""></option>
</select>
</div>
</div>
私はこのケースでドロップダウンしているどのように私は –