Why dont you do
$discs = DB::table('interview_test_disc_answer')
->where('id_interview_schedules', $schedule_id)
->select('sort','ops_a', 'ops_b', 'ops_c', 'ops_d')
->orderby('sort', 'ASC')
->whereNull('deleted_at')->get()->toArray();
Also try by using '->unique();'
I believe the problem is that You are trying to acces an object calling ->value but thats not an object is an array.
Try using
$array['value']
Instead of
$array->value
Hope this helps.
Daniel
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community