0

我正在尝试在我的 Laravel 项目上配置 FirePhp,我按照此处的说明进行操作,但我应该在控制台中更新提供程序列表 -

$ php artisan config:publish p3in/firephp

我收到一个错误:

[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Illuminate\Config\Repository::package()

这是我的 providers 数组的样子:

'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\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,
    Illuminate\View\ViewServiceProvider::class,
    'P3in\Firephp\FirephpServiceProvider',



    /*
     * Application Service Providers...
     */
    App\Providers\AppServiceProvider::class,
    App\Providers\AuthServiceProvider::class,
    App\Providers\EventServiceProvider::class,
    App\Providers\RouteServiceProvider::class,
    Darryldecode\Cart\CartServiceProvider::class,



],
4

1 回答 1

1

该功能已被删除,您可以在此处查看提交

你可以降级你的 Laravel 版本来支持这个包,或者找一个最近 2 年维护的包。

于 2016-10-20T16:12:54.810 回答