Illegal offset type while mail send

Posted 1 month ago by Van1310

error in mail send here is my controller file


$data = [
    'branch' => $request->branch,
            'student_name' => $request->student_name,
            'joining_date' => $request->joining_date,
            'reporting_time' => $request->reporting_time

 \Mail::send('email.confirmation', $data, function($message) use ($mail,$date,$data){
            $message->to($mail)->subject('Welcome to Byte and Bits Team.');

confirmation blade file


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

Reply to

Use Markdown with GitHub-flavored code blocks.