Level 9
What is your enviroment? Using a vm?
Hello,
While using the mail function, i am getting below error
"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /webprojects/myproject/vendor/illuminate/container/Container.php on line 366"
below is my code
class SubscriptionCreateNotificationControllerTest extends Controller {
/**
* Hold the default request.
*/
protected $request;
/**
* Hold the default request.
*/
protected $process;
/**
* The mailer instance.
*
* @var \Illuminate\Contracts\Mail\Mailer
*/
protected $mailer;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct(Request $request, MailerContract $mailer)
{
$this->request = $request;
$this->mailer = $mailer;
}
public function index(){
$this->mailer->send('emails.subscription_welcome', ['key' => ['customer_fname' => 'aaa']], function($message){
$message->to('me@example.com')->subject(' Symantec - Your account details' );
});
exit();
}
}
Any idea?
Please or to participate in this conversation.