F
Filamentβ€’11mo ago
othmansalem

Composer removes packages

when installing phpstan via composer require --dev phpstan/phpstan it automaticlly removes filament/spatie-laravel-media-library-plugin is there a problem here ???
6 Replies
Dennis Koch
Dennis Kochβ€’11mo ago
I've never seen composer "automatically remove" packages πŸ€” Can you share a video of this?
othmansalem
othmansalemβ€’11mo ago
othmansalem
othmansalemβ€’11mo ago
i think this package filament/spatie-laravel-media-library-plugin used as dependency for another package it doesn't appear in composer.json @Dennis Koch
Saifallak
Saifallakβ€’11mo ago
that package will be removed anyway when you do composer update or any other installation/update of any package, because its found in composer.lock only, and not composer.json, means its not used anymore by you, so if you need that package add it to composer.json if not just ignore it
Dennis Koch
Dennis Kochβ€’11mo ago
If you don't use that package, what's the issue then? πŸ˜…
othmansalem
othmansalemβ€’11mo ago
Got it thanks guys