title: cannot sent email with Laravel and gmail from localhost
body: <p>I want to sent mails from my laravel project with gmail smtp from localhost. </p>
  
  <p>this is my .env file</p>
  
  <pre><code>MAIL_DRIVER=smtp    
  MAIL_HOST=smtp.gmail.com   
  MAIL_PORT=587      
  MAIL_USERNAME=myemail@gmail.com
  MAIL_PASSWORD=password
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <p>This is my config/mail.php file</p>
  
  <pre><code>    'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
      'host' =&gt; env('MAIL_HOST', 'smtp.gmail.com'),
      'port' =&gt; env('MAIL_PORT', 587),
      'from' =&gt; [
          'address' =&gt; env('MAIL_FROM_ADDRESS', 'myemail@gmail.com'),
          'name' =&gt; env('MAIL_FROM_NAME', 'My Name'),
      ],
      'encryption' =&gt; env('MAIL_ENCRYPTION', 'tls'),
  
      'username' =&gt; env('myemail@gmail.com'),
  
      'password' =&gt; env('password'),
  </code></pre>
  
  <p>When I run the script, it gives me the following error:</p>
  
  <pre><code>ErrorException in StreamBuffer.php line 94:
  stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
  </code></pre>
  
  <p>Please note that I have already enabled the extension in my php.ini file.</p>