Skip to content

Need to remove the "Extra packages" section from the Docs? #6

@hohanov

Description

@hohanov

I am tried installing litecms/news, litecms/news, litecms/slider and litecms/gallery. All of them were not installed, the error text is:

Package litecms/news is abandoned, you should avoid using it. No replacement was suggested.

Full:

# composer require litecms/news
Using version ^2.0 for litecms/news
./composer.json has been updated
Running composer update litecms/news
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking litecms/news (2.0.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 1 removal
  - Downloading litecms/news (2.0.3)
  - Removing litecms/slider (2.0.3)
Deleting C:\dev\OpenServer\domains\lavalite/packages/litecms/slider/ - deleted
  - Installing litecms/news (2.0.3): Extracting archive
Package litecms/news is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   ErrorException

  array_intersect(): Expected parameter 2 to be an array, null given

  at C:\dev\OpenServer\domains\lavalite\vendor\lavalite\framework\src\Litepie\User\User.php:242
    238▕      */
    239▕     public function setRouteGuard()
    240▕     {
    241▕         $segments = request()->route('guard');
  ➜ 242▕         $guard = array_intersect(array_keys(config('auth.guards')), $segments);
    243▕
    244▕         $guard = (!empty($guard)) ? current($guard) : 'client';
    245▕         $sub = in_array('api', $segments) ? 'api' : 'web';
    246▕

  1   C:\dev\OpenServer\domains\lavalite\vendor\lavalite\framework\src\Litepie\User\User.php:242
      array_intersect()

  2   C:\dev\OpenServer\domains\lavalite\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:261
      Litepie\User\User::setRouteGuard()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions