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.
php artisan config:clear
try itAlso remember to modify your database.php configuration file and specify the default connection as oracle