Home  >  Q&A  >  body text

Laravel - lumen introduces a third-party package to connect to Oracle, but the configuration file to connect to Oracle does not take effect, and it still connects to MySQL by default. What should I do?

Lumen5.4.6 is used. In order to connect to oracle, the third-party package yajra/laravel-oci8 is introduced and execute $ php artisan vendor:publish --tag=oracle. After generating the configuration file and filling in the configuration information, I still cannot connect to the Oracle database.

为情所困为情所困2663 days ago939

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-06-06 09:56:40

    php artisan config:clear try it

    Also remember to modify your database.php configuration file and specify the default connection as oracle

    reply
    0
  • Cancelreply