Answer the question
In order to leave comments, you need to log in
Is it possible to make such a join request?
Previously, the data was formed in the following way:
UserData::where('user_id', '=', Auth::user()->id)
->join(DB::raw('element as e'), 'e.field_name', '=', 'users_data.field_name')
->join(DB::raw('section as s'), 's.section_id', '=', 'e.section_id')
->select([
'users_data.field_name',
'users_data.data',
's.permission_group',
'e.element_label',
's.section_id',
])
->get()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question