After understanding, yajra/laravel-oci8 was installed through composer, and YajraOci8Oci8ServiceProvider::class
was added to config/app.php. After the terminal executed $ php artisan vendor:publish --tag=oracle
, the config was configured In oracle.php, an error is reported when connecting to the database, as follows
Oracle's instantclient has been deployed and environment variables have been added to the system path, and php.ini's extension=php_oci8_12c.dll
has been enabled. The problem still exists. Looking at the output of phpinfo(), it seems that the oci8 extension is not enabled