parvez-git / real-estate

Real Estate Management System based on Laravel PHP framework.
229 stars 160 forks source link

PackageManifest.php #18

Open alhajymoayed opened 2 years ago

alhajymoayed commented 2 years ago

image

RobbiNespu commented 2 years ago

same issue here

D:\laragon\www\real-estate (master)
λ composer.bat install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 79 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-ctype (v1.11.0): Extracting archive
  - Installing vlucas/phpdotenv (v2.6.1): Extracting archive
  - Installing symfony/css-selector (v4.2.4): Extracting archive
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Extracting archive
  - Installing symfony/polyfill-php72 (v1.11.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.11.0): Extracting archive
  - Installing symfony/var-dumper (v4.2.4): Extracting archive
  - Installing symfony/routing (v4.2.4): Extracting archive
  - Installing symfony/process (v4.2.4): Extracting archive
  - Installing symfony/http-foundation (v4.2.4): Extracting archive
  - Installing symfony/contracts (v1.0.2): Extracting archive
  - Installing symfony/event-dispatcher (v4.2.4): Extracting archive
  - Installing psr/log (1.1.0): Extracting archive
  - Installing symfony/debug (v4.2.4): Extracting archive
  - Installing symfony/http-kernel (v4.2.4): Extracting archive
  - Installing symfony/finder (v4.2.4): Extracting archive
  - Installing symfony/console (v4.2.4): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.11.0): Extracting archive
  - Installing symfony/polyfill-iconv (v1.11.0): Extracting archive
  - Installing doctrine/lexer (v1.0.1): Extracting archive
  - Installing egulias/email-validator (2.1.7): Extracting archive
  - Installing swiftmailer/swiftmailer (v6.2.0): Extracting archive
  - Installing paragonie/random_compat (v9.99.99): Extracting archive
  - Installing ramsey/uuid (3.8.0): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing psr/container (1.0.0): Extracting archive
  - Installing symfony/translation (v4.2.4): Extracting archive
  - Installing nesbot/carbon (1.25.0): Extracting archive
  - Installing monolog/monolog (1.24.0): Extracting archive
  - Installing league/flysystem (1.0.51): Extracting archive
  - Installing erusev/parsedown (v1.7.2): Extracting archive
  - Installing dragonmantank/cron-expression (v2.3.0): Extracting archive
  - Installing doctrine/inflector (v1.3.0): Extracting archive
  - Installing laravel/framework (v5.6.39): Extracting archive
  - Installing brian2694/laravel-toastr (5.5.2): Extracting archive
  - Installing fideloper/proxy (4.1.0): Extracting archive
  - Installing fzaninotto/faker (v1.8.0): Extracting archive
  - Installing ralouphie/getallheaders (2.0.5): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing guzzlehttp/psr7 (1.5.2): Extracting archive
  - Installing intervention/image (2.4.2): Extracting archive
  - Installing jakub-onderka/php-console-color (v0.2): Extracting archive
  - Installing nikic/php-parser (v4.2.1): Extracting archive
  - Installing jakub-onderka/php-console-highlighter (v0.4): Extracting archive
  - Installing dnoegel/php-xdg-base-dir (0.1): Extracting archive
  - Installing psy/psysh (v0.9.9): Extracting archive
  - Installing laravel/tinker (v1.0.8): Extracting archive
  - Installing hamcrest/hamcrest-php (v2.0.0): Extracting archive
  - Installing mockery/mockery (1.2.2): Extracting archive
  - Installing filp/whoops (2.3.1): Extracting archive
  - Installing nunomaduro/collision (v2.1.1): Extracting archive
  - Installing webmozart/assert (1.4.0): Extracting archive
  - Installing phpdocumentor/reflection-common (1.0.1): Extracting archive
  - Installing phpdocumentor/type-resolver (0.4.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (4.3.0): Extracting archive
  - Installing phpunit/php-token-stream (3.0.1): Extracting archive
  - Installing sebastian/version (2.0.1): Extracting archive
  - Installing sebastian/resource-operations (2.0.1): Extracting archive
  - Installing sebastian/recursion-context (3.0.0): Extracting archive
  - Installing sebastian/object-reflector (1.1.1): Extracting archive
  - Installing sebastian/object-enumerator (3.0.3): Extracting archive
  - Installing sebastian/global-state (2.0.0): Extracting archive
  - Installing sebastian/exporter (3.1.0): Extracting archive
  - Installing sebastian/environment (4.1.0): Extracting archive
  - Installing sebastian/diff (3.0.2): Extracting archive
  - Installing sebastian/comparator (3.0.2): Extracting archive
  - Installing phpunit/php-timer (2.1.1): Extracting archive
  - Installing phpunit/php-text-template (1.2.1): Extracting archive
  - Installing phpunit/php-file-iterator (2.0.2): Extracting archive
  - Installing theseer/tokenizer (1.1.0): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Extracting archive
  - Installing phpunit/php-code-coverage (6.1.4): Extracting archive
  - Installing doctrine/instantiator (1.2.0): Extracting archive
  - Installing phpspec/prophecy (1.8.0): Extracting archive
  - Installing phar-io/version (2.0.1): Extracting archive
  - Installing phar-io/manifest (1.0.3): Extracting archive
  - Installing myclabs/deep-copy (1.8.1): Extracting archive
  - Installing phpunit/phpunit (7.5.8): Extracting archive
  - Installing squizlabs/php_codesniffer (3.4.1): Extracting archive
Generating optimized autoload files
Class Egulias\EmailValidator\Exception\ExpectedQPair located in D:/laragon/www/real-estate/vendor/egulias/email-validator/EmailValidator\Exception\ExpectingQPair.php does not comply with psr-4 autoloading standard. Skipping.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In PackageManifest.php line 122:

  Undefined index: name

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
RobbiNespu commented 2 years ago

nvm, the quirt and dirty hack is go to real-estate\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php

change $packages inside public function build() with code below (I include the comment for clear revision)

            // $packages = json_decode($this->files->get($path), true);
            $installed = json_decode($this->files->get($path), true);
            $packages = $installed['packages'] ?? $installed;
badtux commented 2 years ago

hi any help you need?

On Wed, Jul 20, 2022 at 11:03 PM Moayed Alhagy @.***> wrote:

[image: image] https://user-images.githubusercontent.com/49277634/180046081-5ac6d012-0960-4397-ba19-e4843fb2d5f2.png

— Reply to this email directly, view it on GitHub https://github.com/parvez-git/real-estate/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEUAJNIFCGXG5VDNSFIKRLVVAZ75ANCNFSM54EQPENA . You are receiving this because you are subscribed to this thread.Message ID: @.***>