Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function build()
- {
- $title = "Presupuesto";
- $return = $this->replyTo( $this->data[ "email" ], $this->data[ "nombre" ] )
- ->subject( $title )
- ->view('form.presupuesto')
- ->with( $this->data );
- if(!empty( $this->file)) {
- $return = $return->attach($this->file->getRealPath(),
- [
- 'as' => $this->file->getClientOriginalName(),
- 'mime' => $this->file->getClientMimeType(),
- ]);
- }
- return $return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement