Solved - Laravel PackageManifest.php: Undefined index: name -- error


Share:
Published By: Admin, Published On: Jan 04, 2022, Category: Laravel


Hello Friends,

This article will give you example of laravel PackageManifest.php: Undefined index: name. I explained simply about Undefined index: name laravel. This tutorial will give you simple example of PackageManifest.php Undefined index:name after trying to install a package.

In this post, You'll learn Error Laravel PackageManifest php Undefined index name. i will show you laravel how to solve undefined index.

Here i will give you many example for how to solve Laravel PackageManifest.php: Undefined index: name.

So, let's see bellow solution:

Step 1 : Find File

PackageManifest.php

File Path:

vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
Step 2 : Add Code
//Find this line and comment it:
$packages = json_decode($this->files->get($path), true);

//Add two new lines after the above commented line:

$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;
Step 3 : Update Composer
composer update
It will help you...
Share: