After running composer update the error bellow occurs:
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In CustomFieldsModelTrait.php line 82:
Class 'Str' not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
file composer.lock has been deleted but problem still remains
Please help
1 Answers
Hello,
Please make sure Foundation module is updated and
Corals/core/Foundation/FoundationServiceProvider.php has the following lines at #95
$loader->alias('Arr', Arr::class);
$loader->alias('Str', Str::class);
I've got the solution, some folders on server are write protected so unable to unzip and update correctly laraship. Need just to change file access permission then unzip again laraship.
Please login or Register to submit your answer