selam ben Maatwebsite Excel kullanıyorum ve
class InvoicesExport implements FromQuery
{
use Exportable;
public function query()
{
return DB::table('survey_responses')
->join('surveys', 'survey_responses.survey_id', '=', 'surveys.id')
->join('questions', 'survey_responses.questions_id', '=', 'questions.id')
->join('answers', 'survey_responses.answer_id', '=', 'answers.id')
->join('questionnaire', 'questions.questionnaire_id', '=', 'questionnaire.id')
->select(
'surveys.name as Survey Name',
'surveys.email as Survey Email',
'questionnaire.title as Questionnaire Title',
'questionnaire.purpose as Questionnaire Purpose',
'questions.question as Question',
'answers.answer as Answer'
)
->orderByDesc('survey_responses.id');
}
}
bana şöyle bir çıktı veriyor
https://prnt.sc/cH7FM61zn8cj
fakat benden istenen
https://prnt.sc/SLP2aJrF0XHh
şöyle veya
https://prnt.sc/5wSg2V-A6gH1
şöyle bir şey bunu yapabilmemin bir yolu var mı sizce