javineo
316
10
Laravel

"SluggableServiceProvider.php Does not exist anymore?"

Posted 1 year ago by javineo

At the moment I am trying to migrate my project from Laravel 5.3 (working) to Laravel 5.4 and I have found the following error:

(1/1) FatalErrorException
Class 'Cviebrock\EloquentSluggable\SluggableServiceProvider' not found

in ProviderRepository.php (line 208)

This is my composer.json:

    "require": {
        "php": ">=5.6.4",
        "barryvdh/laravel-dompdf": "^0.8.1",
        "cviebrock/eloquent-sluggable": "^4.2",
        "guzzlehttp/guzzle": "^6.3",
        "laravel/framework": "5.4.*",
        "laravel/tinker": "~1.0",
        "laravelcollective/html": "^5.4",
        "laravelcollective/remote": "^5.4",
        "nesbot/carbon": "^1.22"
    },

and this is the code of my app.php :

    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::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\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,
        Barryvdh\DomPDF\ServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,
        Cviebrock\EloquentSluggable\SluggableServiceProvider::class,
        Collective\Remote\RemoteServiceProvider::class,

        /*
         * Package Service Providers...
         */
        Laravel\Tinker\TinkerServiceProvider::class,

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        App\Providers\ComposerServiceProvider::class,

    ],


I could also notice that in:

\vendor\cviebrock\eloquent-sluggable\src

does not contain the file:

SluggableServiceProvider.php

If someone can guide me on how to get out of this quagmire, I thank you.

Please sign in or create an account to participate in this conversation.