Closed loooping-old closed 4 years ago
This should be reported to the hook maintainer, not here.
thanks
run php artisan hook:install voyager-excel -vvv
can return more info
See bellow, same error occur in Apache / Nginx (same im Docker development or Ubuntu production)
bash-5.0# php artisan hook:install voyager-excel -vvv
ErrorException : Undefined index: voyager-excel
at /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1290
1286| * @return mixed
1287| */
1288| public function offsetGet($key)
1289| {
> 1290| return $this->items[$key];
1291| }
1292|
1293| /**
1294| * Set the item at a given offset.
Exception trace:
1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Undefined index: voyager-excel", "/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Collection.php", ["voyager-excel"])
/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1290
2 Illuminate\Support\Collection::offsetGet("voyager-excel")
/var/www/html/vendor/larapack/hooks/src/Hooks.php:237
3 Larapack\Hooks\Hooks::install("voyager-excel")
/var/www/html/vendor/larapack/hooks/src/Commands/InstallCommand.php:37
4 Larapack\Hooks\Commands\InstallCommand::handle()
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32
5 call_user_func_array([])
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32
6 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php:36
7 Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90
8 Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Object(Closure))
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34
9 Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), [])
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:590
10 Illuminate\Container\Container::call()
/var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php:134
11 Illuminate\Console\Command::execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
/var/www/html/vendor/symfony/console/Command/Command.php:255
12 Symfony\Component\Console\Command\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
/var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php:121
13 Illuminate\Console\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/var/www/html/vendor/symfony/console/Application.php:1001
14 Symfony\Component\Console\Application::doRunCommand(Object(Larapack\Hooks\Commands\InstallCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/var/www/html/vendor/symfony/console/Application.php:271
15 Symfony\Component\Console\Application::doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/var/www/html/vendor/symfony/console/Application.php:147
16 Symfony\Component\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php:93
17 Illuminate\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:131
18 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/var/www/html/artisan:37
Description:
Can't Install hook voyager-excel, other hooks works fine.
Steps To Reproduce:
Execute command
php artisan hook:install voyager-excel