[SOLVED] Undefined index: name In PackageManifest.php line 122 — Laravel

Lim Sing
Mar 14, 2021

Problem:

I tried to deploy my laravel application, then i got the following error:

In PackageManifest.php line 122: Undefined index: name

Undefined index: name

Solution:

In my case, the following steps are worked for me :

  1. Find the PackageManifest.phpfile in:
vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php

2. Comment the line:

$packages = json_decode($this->files->get($path), true);

3. Replace with these two lines code:

$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;

Hope it helps!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Lim Sing
Lim Sing

No responses yet

Write a response