yajra / laravel-oci8

Oracle DB driver for Laravel via OCI8
https://yajrabox.com/docs/laravel-oci8
MIT License
829 stars 237 forks source link

fix: Test for existence of AuthServiceProvider before trying to use it #872

Closed theojlab closed 1 month ago

theojlab commented 1 month ago

This is a proposed fix for the error (see below) that I encountered while attempting to use yajra/laravel-oci8 with the Laravel Zero micro-framework. The solution is to test whether the Laravel AuthServiceProvider class exists before attempting to use it.

   Illuminate\Contracts\Container\BindingResolutionException

  Target class [auth] does not exist.

  at vendor/illuminate/container/Container.php:940
    936▕
    937▕         try {
    938▕             $reflector = new ReflectionClass($concrete);
    939▕         } catch (ReflectionException $e) {
  ➜ 940▕             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
yajra commented 1 month ago

Release on https://github.com/yajra/laravel-oci8/releases/tag/v11.5.0 🚀 Thanks!