Reputation: 29
I was working with laravel 6 version. I tried to install mpdf package to create a "pdf download" option. I used composer require carlos-meneses/laravel-mpdf
command. It didn't install the package and gave me this message
PackageManifest.php line 131 Undefined index:name
I had the same experience with installation of dompdf.
Upvotes: 1
Views: 5334
Reputation: 1648
this page
vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php this line comment :
$packages = json_decode($this->files->get($path), true);
Add two lines:
$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;
Upvotes: 8