Closed loooping-old closed 4 years ago
you can run php artisan hook:install voyager-excel -vvv
? and call me this return info
of course, follow bellow since now, thank you for your help
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:202
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:189
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:1011
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:272
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:148
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
can you tell me your composer.json
file content ?
My composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^1.0",
"orangehill/iseed": "^2.6",
"tcg/voyager": "1.3.*"
},
"require-dev": {
"facade/ignition": "^1.4",
"beyondcode/laravel-dump-server": "^1.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^8.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"repositories": {
"hooks": {
"type": "composer",
"url": "https://larapack.io"
}
}
}
you open https://larapack.io/packages.json
,can you see "voyager-excel":{"dev-master":{"name":"voyager-excel"
?
Yes a can
I suspect it's caused by network jitter,I need you to confirm
How I can test this? Sometimes I have 504 error installing this hook.
504 means network timeout. sorry, I can't help it
Yeah I know, im reffer Jitter, How i can test this?
@tu6ge I installed other hook now for tests purpose and worked, really exist some error in your package
I will analyze
you can visit http://voyager.xiaoqiezi.top/admin ,account guest@guest.com
and password guest
http://voyager.xiaoqiezi.top/admin/users ,The button in the upper right corner is export Excel
I see, I'm trying install another way
just to update, your hook does not work for auto installation, all the others on larapack.io work, I tried to install via composer but accuses the lack of some dependencies
@tu6ge man really exist problem in your hook, i wont find yet, but im installed all library larapack hooks only voyager-excel
fails, ever same problem ErrorException Undefined index: voyager-excel
I can't install executing
php artisan hook:install voyager-excel
Error: vendor/laravel/framework/src/Illuminate/Support/Collection.php:1290
Line 1920:
return $this->items[$key];