raw($messageText, function ($message) use ($recipients,$title) { $message->subject($title); $message->to($recipients); }); // return $this->successResponse("mail envoye"); } public function checkPassword($password , $encrypted_password , $salt) { $encrypted_password_to_check = base64_encode(sha1($password . $salt, true) . $salt); return $encrypted_password_to_check == $encrypted_password; } }