title: php laravel artisan migrate error in model?
body: <p>i am new to php laravel i try to migrate project with database but i got following error ? </p>
  
  <pre><code>Illuminate\Database\QueryException 
  
    could not find driver (SQL: select * from information_schema.tables where table_schema = lcrud and table_name = migrations and table_type = 'BASE TABLE')
  
    at vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
      665|         // If an exception occurs when attempting to run a query, we'll format the error
      666|         // message to include the bindings with SQL, which will make this exception a
      667|         // lot more helpful to the developer instead of just the database's errors.
      668|         catch (Exception $e) {
    &gt; 669|             throw new QueryException(
      670|                 $query, $this-&gt;prepareBindings($bindings), $e
      671|             );
      672|         }
      673| 
  
        +34 vendor frames 
    35  artisan:37
        Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  </code></pre>
  
  <p>and here is the .env file </p>
  
  <pre><code>APP_NAME=lcrud
  APP_ENV=local
  APP_KEY=base64:PchgVozhfLeJtzlwFMtY0VGEpsfj2PYCtS7eVcothEY=
  APP_DEBUG=true
  APP_URL=http://localhost
  
  LOG_CHANNEL=stack
  
  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=lcrud
  DB_USERNAME=root
  DB_PASSWORD=
  
  BROADCAST_DRIVER=log
  CACHE_DRIVER=file
  QUEUE_CONNECTION=sync
  SESSION_DRIVER=file
  SESSION_LIFETIME=120
  
  REDIS_HOST=127.0.0.1
  REDIS_PASSWORD=null
  REDIS_PORT=6379
  
  MAIL_MAILER=smtp
  MAIL_HOST=smtp.mailtrap.io
  MAIL_PORT=2525
  MAIL_USERNAME=null
  MAIL_PASSWORD=null
  MAIL_ENCRYPTION=null
  MAIL_FROM_ADDRESS=null
  MAIL_FROM_NAME="${APP_NAME}"
  
  AWS_ACCESS_KEY_ID=
  AWS_SECRET_ACCESS_KEY=
  AWS_DEFAULT_REGION=us-east-1
  AWS_BUCKET=
  
  PUSHER_APP_ID=
  PUSHER_APP_KEY=
  PUSHER_APP_SECRET=
  PUSHER_APP_CLUSTER=mt1
  
  MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
  MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
  </code></pre>
  
  <p>i have double check that my password is nothing so i have tried to place empty string like this <code>DB_PASSWORD=''</code> and also like this <code>DB_PASSWORD=' '</code> but it does not work also in other stackoverflow question i read about php.ini file and made changes according this <a href="https://stackoverflow.com/questions/46745365/artisan-migrate-could-not-find-driver">page</a>. </p>
  
  <p>my php version is <code>PHP 7.2.24-0ubuntu0.19.04.2 (cli) (built: Jan 14 2020 13:26:02) ( NTS )</code></p>
  
  <p>and when i type <code>which php</code> in terminal i got <code>/usr/bin/php</code></p>
  
  <p>i was trying other question answer but not working . 
  Please help me , Thank You . </p>
  
  <p><strong>UPDATE</strong>
  here i have my database.php file that might help you , </p>
  
  <pre><code>'connections' =&gt; [
  
          'sqlite' =&gt; [
              'driver' =&gt; 'sqlite',
              'url' =&gt; env('DATABASE_URL'),
              'database' =&gt; env('DB_DATABASE', database_path('database.sqlite')),
              'prefix' =&gt; '',
              'foreign_key_constraints' =&gt; env('DB_FOREIGN_KEYS', true),
          ],
  
          'mysql' =&gt; [
              'driver' =&gt; 'mysql',
              'url' =&gt; env('DATABASE_URL'),
              'host' =&gt; env('DB_HOST', '127.0.0.1'),
              'port' =&gt; env('DB_PORT', '3306'),
              'database' =&gt; env('DB_DATABASE', 'forge'),
              'username' =&gt; env('DB_USERNAME', 'forge'),
              'password' =&gt; env('DB_PASSWORD', ''),
              'unix_socket' =&gt; env('DB_SOCKET', ''),
              'charset' =&gt; 'utf8mb4',
              'collation' =&gt; 'utf8mb4_unicode_ci',
              'prefix' =&gt; '',
              'prefix_indexes' =&gt; true,
              'strict' =&gt; true,
              'engine' =&gt; null,
              'options' =&gt; extension_loaded('pdo_mysql') ? array_filter([
                  PDO::MYSQL_ATTR_SSL_CA =&gt; env('MYSQL_ATTR_SSL_CA'),
              ]) : [],
          ],
  
          'pgsql' =&gt; [
              'driver' =&gt; 'pgsql',
              'url' =&gt; env('DATABASE_URL'),
              'host' =&gt; env('DB_HOST', '127.0.0.1'),
              'port' =&gt; env('DB_PORT', '5432'),
              'database' =&gt; env('DB_DATABASE', 'forge'),
              'username' =&gt; env('DB_USERNAME', 'forge'),
              'password' =&gt; env('DB_PASSWORD', ''),
              'charset' =&gt; 'utf8',
              'prefix' =&gt; '',
              'prefix_indexes' =&gt; true,
              'schema' =&gt; 'public',
              'sslmode' =&gt; 'prefer',
          ],
  
          'sqlsrv' =&gt; [
              'driver' =&gt; 'sqlsrv',
              'url' =&gt; env('DATABASE_URL'),
              'host' =&gt; env('DB_HOST', 'localhost'),
              'port' =&gt; env('DB_PORT', '1433'),
              'database' =&gt; env('DB_DATABASE', 'forge'),
              'username' =&gt; env('DB_USERNAME', 'forge'),
              'password' =&gt; env('DB_PASSWORD', ''),
              'charset' =&gt; 'utf8',
              'prefix' =&gt; '',
              'prefix_indexes' =&gt; true,
          ],
  
      ],
  </code></pre>