Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

djkaushiksk1's avatar

Cannot Export full data in Excel File

Hi,

I'm using CKEditor as text input and then string it in the DB.

However, when i try to export the data from database to excel using http://www.maatwebsite.nl/laravel-excel/docs/blade the full data doesn't appear.

Is there a way to display this data in excel.

0 likes
4 replies
djkaushiksk1's avatar

report.blade.php

        <?php
        //to fetch data from comments db
                $comments= DB::table('comments')
                ->where('task_id', '=', $row->id)
                ->orderBy('id', 'desc')
                ->take(1)
                ->get();
        

?>

data in the database are as follows for comment:

Below are the list< ul>

  • Email 
  • Account
  • < /ul>

    Can you please help

    djkaushiksk1's avatar

    please note that the database content will be in HTML code. Unfortunately when i paste the data it comes it bullet point form here

    Please or to participate in this conversation.