Kbwebs / MultiAuth

MIT License
138 stars 36 forks source link

Fatal error: Class not found #22

Open ricoxor opened 8 years ago

ricoxor commented 8 years ago

Hi,

I install the MultiAuth but i have this error :

FatalThrowableError in ProviderRepository.php line 146:
Fatal error: Class 'Kbwebs\MultiAuth\AuthServiceProvider' not found

The app.php is correctly setup :

    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        //Illuminate\Auth\AuthServiceProvider::class

        Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
        Kbwebs\MultiAuth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Routing\ControllerServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Kbwebs\MultiAuth\PasswordResets\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        Chrisbjr\ApiGuard\Providers\ApiGuardServiceProvider::class,
        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

    ],

Someone can help me please.

capir commented 8 years ago

Same problem here. Seems that vendor/kbwebs dir doesn't get created. Anybody?

LE:

Got passed this issue by deleting the composer.lock and run a composer update. Not cool but it worked.

What seemed strange was that all other packages were downloaded but this one was loaded from cache. Hope it helps.


  - Removing laravel/framework (v5.1.24)
  - Installing laravel/framework (v5.1.26)
    Downloading: 100%

  - Installing kbwebs/multiauth (v1.0)
    Loading from cache