Closed loooping-old closed 4 years ago
Any idea? Really can’t install anyway
open composer.json, find this
{
"repositories": {
"hooks": {
"type": "composer",
"url": "https://larapack.io"
}
}
}
update this
{
"repositories": {
"hooks": {
"type": "composer",
"url": "http://satisfy.xiaoqiezi.top"
}
}
}
next,update composer.json
{
"config": {
...
"secure-http": false
},
...
}
open App\Providers\AppServiceProvider.php
,in register method add this code:
use Larapack\Hooks\Hooks;
$this->app->resolving(Hooks::class, function ($api, $app) {
$this->app[Hooks::class]::setRemote('http://satisfy.xiaoqiezi.top');
$this->app[Hooks::class]->readJsonFile();
});
then ,run php artisan hook:install voyager-excel
I do this, and same error:
Also run composer update
for update composer.lock and the call use Larapack\Hooks\Hooks;
I do outside of the method for work correctly.
bash-5.0# php artisan hook:install voyager-excel
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
Please use the argument -v to see more details.
Really I Can't install voyager-excel
other Hooks of larapack.io works fine but voyager-excel
won't work anyway I tried a lot solutions but all fails
Hi I Solve installing again ZIP ext in php
Suggestion: add ZIP dependencie in yout composer.json
RUN apk add --no-cache zip libzip-dev
RUN docker-php-ext-configure zip --with-libzip
RUN docker-php-ext-install zip
larapack/hooks
install hook and dependent by Memory,this hook dependent maatwebsite/excel
, then install hook by more memory and cpu. sorry
Got it but I believe is not my problem my machine have 8gb ram an i7 processor, but cool thanks
Can you install maatwebsite/excel
package in any path?
Yeah works fine.
You can try install maatwebsite/excel
, After install this hook
Sorry, My computer have composer cache. now,I find http://satisfy.xiaoqiezi.top/
secret is wrong ,then I repair it,can you try again?
I'm open an issue in Larapack Hooks, see #48