Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error package:discover ! #61

Open
livevasiliy opened this issue Jun 19, 2019 · 0 comments
Open

Error package:discover ! #61

livevasiliy opened this issue Jun 19, 2019 · 0 comments

Comments

@livevasiliy
Copy link

Hi, @pingpong-labs I have some problem with your package on Laravel version 5.8.
I can't discover your packages. I add in config/app.php your class MenusServiceProvider an alias for a package. But after call php artisan vendor:publish I get next error from composer:

Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined method Illuminate\Foundation\Application::share()

at C:\Users\vasil\pingpong-test\vendor\pingpong\menus\MenusServiceProvider.php:43
39| public function register()
40| {
41| $this->registerHtmlPackage();
42|

43| $this->app['menus'] = $this->app->share(function ($app) {
44| return new Menu($app['view'], $app['config']);
45| });
46| }
47|

Exception trace:

1 Pingpong\Menus\MenusServiceProvider::register()
C:\Users\vasil\pingpong-test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:607

2 Illuminate\Foundation\Application::register(Object(Pingpong\Menus\MenusServiceProvider))
C:\Users\vasil\pingpong-test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:741

Please use the argument -v to see more details.

C:\Users\vasil\pingpong-test>php artisan config:publish pingpong/menus --provider

Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined method Illuminate\Foundation\Application::share()

at C:\Users\vasil\pingpong-test\vendor\pingpong\menus\MenusServiceProvider.php:43
39| public function register()
40| {
41| $this->registerHtmlPackage();
42|

43| $this->app['menus'] = $this->app->share(function ($app) {
44| return new Menu($app['view'], $app['config']);
45| });
46| }
47|

Exception trace:

1 Pingpong\Menus\MenusServiceProvider::register()
C:\Users\vasil\pingpong-test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:607

2 Illuminate\Foundation\Application::register(Object(Pingpong\Menus\MenusServiceProvider))
C:\Users\vasil\pingpong-test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:741

Please use the argument -v to see more details.

P.S: composer dump-autoload or composer update not help me. Please fix for lasted versions Laravel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant