Composer install problem

Laraship QuestionsCategory: TechnicalComposer install problem
Sebastian Bauer asked 4 years ago
composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Fatal error:  Trait 'Spatie\Permission\Traits\HasRoles' not found in /app/Corals/core/User/Models/User.php on line 30
 
   Symfony\Component\Debug\Exception\FatalErrorException  : Trait 'Spatie\Permission\Traits\HasRoles' not found
 
  at /app/Corals/core/User/Models/User.php:30
    26|
    27|
    28| class User extends Authenticatable implements TwoFactorAuthenticatableContract, HasMedia
    29| {
  > 30|     use TwoFactorAuthenticatable, Notifiable, HashTrait, HasRoles, ModelPropertiesTrait, HasApiTokens,
    31|         Hookable, PresentableTrait, LogsActivity, HasMediaTrait, AuditableTrait,
    32|         CustomFieldsModelTrait, ModelHelpersTrait, ReviewRateableTrait, Translatable, BaseRelations;
    33|
    34|     /**
   
1 Answers
laraship Staff answered 4 years ago
Hello, Can you delete the composer.lock file and run composer install again