salomon022
8 months ago

Undefined variable: inputs

Posted 8 months ago by salomon022
public static function send($token, $inputs)
   {
       $data=array('token' => $token);
        Mail::send(['text'=>'mail'], ['$inputs'=> $inputs, 'token' => $token], function($message, $inputs) {
         $message->to($inputs['user_email'], $inputs['user_name'])->subject
            ('Verify Email');
         $message->from('[email protected]','noreplay');
      });
   }

error in line

         $message->to($inputs['user_email'], $inputs['user_name'])->subject ('Verify Email');

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