Van1310
184
1
Laravel

Swift_IoException Unable to open file for reading [1]

Posted 2 months ago by Van1310

here is my code

$path = Excel::store(new SalesregisterExport(2018), 'Sales Register 2019 Cr.xlsx','mail_upload');

$data = array('name'=>"dmeo");      
    
\Mail::send('mail.mail', $data, function($message) use($path){
    
    $message->to('[email protected]')
    
            ->subject('Sales Register 2019 Excelsheet');
    
    $message->from('[email protected]','demo');
    
    $message->attach(Storage::disk('mail_upload')->put($path,'mobile_upload')); 
    
});

Please sign in or create an account to participate in this conversation.