dimanche 4 octobre 2020

Class 'Illuminate\Notifications\NexmoChannelServiceProvider' not found

While upgrading Laravel framework from v5.6 to v5.7. I got this error.

In ProviderRepository.php line 208:
                                                                          
  Class 'Illuminate\Notifications\NexmoChannelServiceProvider' not found

I followed instructions from the official guide. https://laravel.com/docs/5.7/upgrade

Additionally, I tried deleting bootstrap/cache/packages.php file which has reference to the above classe. I tried composer dump-autoload too but not gain.

My composer.json file is:-

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.1.3",
        "barryvdh/laravel-dompdf": "^0.8.3",
        "doctrine/dbal": "^2.7",
        "guzzlehttp/guzzle": "^6.3",
        "intervention/image": "^2.4",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "~1.0",
        "laravelcollective/html": "~5.0",
        "maatwebsite/excel": "^3.0",
        "nao-pon/flysystem-google-drive": "~1.1",
        "stripe/stripe-php": "^6.1"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~7.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        },
        "files": ["app/Helpers/Global.php"]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    }
}


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire