src/Http/Controllers/MailEmlController.php
public function show(EntriesRepository $storage, $id)
    {
        return response($storage->find($id)->content['raw'], 200, [
            'Content-Type' => 'message/rfc822',
            'Content-Disposition' => 'attachment; filename="mail-'.$id.'.eml"',
        ]);
    }
public function show(EntriesRepository $storage, $id)
    {
        return response($storage->find($id)->content['raw'], 200, [
            'Content-Type' => 'message/rfc822',
            'Content-Disposition' => 'attachment; filename="mail-'.$id.'.eml"',
        ]);
    }
public function show ( EntriesRepository $ storage , $ id ) { return response ( $ storage -> find ( $ id ) -> content [ 'raw' ] , 200 , [ 'Content-Type' => 'message/rfc822' , 'Content-Disposition' => 'attachment; filename="mail-' . $ id . '.eml"' , ] ) ; }
Download the Eml content of the email.

@param  \Laravel\Telescope\Contracts\EntriesRepository  $storage
@param  int  $id
@return mixed
Download the Eml content of the email .