home
/
forge
/
roadtovirtuosity.com
/
app
/
Mail
➕ New
📤 Upload
✎ Editing:
PaymentSuccessMailable.php
← Back
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Queue\SerializesModels; class PaymentSuccessMailable extends Mailable { use Queueable, SerializesModels; private $transaction; /** * Create a new message instance. * * @return void */ public function __construct($transaction) { $this->transaction = $transaction; } /** * Get the message envelope. * * @return \Illuminate\Mail\Mailables\Envelope */ public function envelope() { $toAddress = config('register.email.type-student'); return (new Envelope) ->to($toAddress) ->subject('Payment Success Mailable'); } /** * Get the message content definition. * * @return \Illuminate\Mail\Mailables\Content */ public function build() { return $this->view('emails.payment-success-mailable') ->with(['transaction' => $this->transaction]); } /** * Get the attachments for the message. * * @return array */ public function attachments() { return []; } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel