Error on Artisan commands when updating Composer dependencies

后端 未结 5 1745
离开以前
离开以前 2021-02-13 17:09

I am developing a library for Laravel which contains a service provider. I have added this library to another project\'s composer.json file.

The compo

5条回答
  •  清酒与你
    2021-02-13 17:48

    It looks like you're simply not including your ServiceProvider. Put this in your root project's composer.json:

    {
        "autoload": {
            "psr-4": {
                "App\\": "app/",
                "MyName\\MyProject\\": "../relative/path/to/serviceprovider/"
            }
        }
    }
    

提交回复
热议问题