Support the ongoing development of Laravel.io →
Eloquent Laravel
Last updated 1 year ago.
0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Kang Mul omysurya Joined 24 Aug 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.