1 year ago

mailable and attach full path to file?

Posted 1 year ago by javineo

Hello friends,

I try to attach a .pdf file in an email from Laravel 5.6. What is the full path of my file?

mi .PDF is hosted at storage / app / public

I invoke that path and it gives me a path error.

    public function build()
        return $this->subject('Ofertas Arepera!!!')->view('emails.docmail')->attach('storage/app/public', ['as' => 'asamblea.pdf', 'mime' => 'application/pdf',]);

Greetings and congratulations to all

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