You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Too few arguments to function App\Mail\ChangeEmailRequest::__construct(), 0 passed in D:\Laravel\grand\grandcalendar-api\vendor\qoraiche\laravel-mail-editor\src\MailEclipse.php on line 796 and exactly 2 expected
I got this error after installed the package from the old mails
public function __construct($user = null)
{
$this->user = $user;
}
<?php
namespace App\Mail;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Queue\SerializesModels;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Contracts\Queue\ShouldQueue;
class ChangeEmailRequest extends Mailable
{
use Queueable, SerializesModels;
public $otp;
public $userName;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($otp = null, $userName= null)
{
$this->otp = $otp;
$this->userName = $userName;
}
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope()
{
return new Envelope(
subject: 'Verify Change Email Request with OTP ',
);
}
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content()
{
return new Content(
markdown: 'emails.users.changeEmailRequest',
with: [
'otp' => $this->otp,
'userName' => $this->userName,
],
);
}
/**
* Get the attachments for the message.
*
* @return array
*/
public function attachments()
{
return [];
}
}
Describe the bug
Too few arguments to function App\Mail\ChangeEmailRequest::__construct(), 0 passed in D:\Laravel\grand\grandcalendar-api\vendor\qoraiche\laravel-mail-editor\src\MailEclipse.php on line 796 and exactly 2 expected
I got this error after installed the package from the old mails
Reproduction steps
Steps to reproduce the behavior:
http://api.grand.test/maileclipse/mailables
Laravel Version:
9.19
MailEclipse package version:
MailEclipse: 4.0
Screenshots (if applicable)
The text was updated successfully, but these errors were encountered: