I am using laravel 6.0 and try to use the PHPMailer in our project
A) Firstly I am install the command in our project. (composer require phpmailer/phpmailer) B) Second include code in composer.json ("phpmailer/phpmailer": "dev-master",) c) Then make php file as name. (App/custom/SmtpEmail.php) D) Then I am getting following three Error I) Undefined type 'PHPMailer'. II) Undefined type 'App\Custom\phpmailerException'. III) Undefined type 'vendor\phpmailer\phpmailer\src\Exception'.
F) This is my code of PHPMailer