Support the ongoing development of Laravel.io →
Eloquent Laravel
Last updated 2 weeks 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!

Cloudways

Your banner here too?

Kang Mul Kang Mul omysurya Joined 24 Aug 2018

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.