0

I'm trying to config FirePhp on my Laravel project, I followed the instructions from here , But on the part were i should update the providers list in the console -

$ php artisan config:publish p3in/firephp

i get an error:

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

Here is how my providers array looks like:

'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,



],
RoyBar
  • 149
  • 2
  • 4
  • 14
  • You need to replace `'P3in\Firephp\FirephpServiceProvider'`, by `P3in\Firephp\FirephpServiceProvider::class` in the poviders array. – 2Fwebd Oct 20 '16 at 15:56
  • Thanks, it was my first attempt, but unfortunately i get the same error – RoyBar Oct 20 '16 at 16:00

1 Answers1

1

That function was removed, you can view the commit here.

You can downgrade your version of Laravel to support this package, or find a package that has been maintained in the last 2 years.

Ohgodwhy
  • 49,779
  • 11
  • 80
  • 110