title: PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
body: <p>My .env:</p>
  
  <pre><code>APP_ENV=local
  APP_DEBUG=true
  APP_KEY=myappkey
  APP_URL=http://localhost
  
  DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3306
  DB_DATABASE=gestiontaller
  DB_USERNAME=root
  DB_PASSWORD='root'
  
  CACHE_DRIVER=file
  SESSION_DRIVER=file
  QUEUE_DRIVER=sync
  
  REDIS_HOST=127.0.0.1
  REDIS_PASSWORD=null
  REDIS_PORT=6379
  
  MAIL_DRIVER=smtp
  MAIL_HOST=mailtrap.io
  MAIL_PORT=2525
  MAIL_USERNAME=null
  MAIL_PASSWORD=null
  MAIL_ENCRYPTION=null
  </code></pre>
  
  <p>I've tried the password with ", ' and without, restarting server every time. I've also tried changing localhost to 172.0.0.1. Yes, my password is correct, running <code>mysql -u root -p</code> introducing my password <code>root</code> in the prompt I can go into mysql. My users table:</p>
  
  <pre><code>+------------------+-----------+
  | user             | host      |
  +------------------+-----------+
  | debian-sys-maint | localhost |
  | mysql.sys        | localhost |
  | root             | localhost |
  | root1            | localhost |
  +------------------+-----------+
  </code></pre>
  
  <p>I've also added to my Homestead.yaml this: <code>database_port: 3306</code></p>
  
  <p>Using <code>php artisan tinker</code> I'm not having problems with the database creating and adding items, just when trying to acces a view through a controller:</p>
  
  <pre><code>class TestController extends Controller
  {
      public function view ($id){
  
          $car = Car::find($id);
  
          $car-&gt;category;
          $car-&gt;user;
          $car-&gt;tags;
  
          dd($car);
      }
  }
  </code></pre>
  
  <p>I've also tried multiple times <code>php artisan config:clear</code>.</p>