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

RosTal's avatar

Export Excel with cell hyperlink

I am using Maatwebsite for exporting my data as an excel file. It is working well.

    public function map($user): array
    {
 return [
                   $user->first_name , $user->last_name , $user->website
        ];
}

I want to make "website" cell as a link for user website address. I appreciate your help

0 likes
1 reply
RosTal's avatar

Any idea to help? or if it is not clear let me explain more:

In the Excel file I would like to have something like this:


First Name      Last Name       Website
x               y               google.com       <------ When export this cell has a hyperlink with (google.com) address.

Please or to participate in this conversation.