In my local directory, I just installed beautymail for laravel email sending, but when I go to my putty app and type composer require snowfire/beautymail dev-master
It gives me an error of
ubuntu@ip-172-31-16-16:/var/www/html/domain-payment$ composer require snowfire/beautymail dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In ProviderRepository.php line 208:
Class 'Snowfire\Beautymail\BeautymailServiceProvider' not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json to its original content.
How could I fix this? I already pushed my code to repo and after that I want to install the beautymail package because in my local directory, i already published the asset of beautymail. Can someone tell me what should I do? Thanks.
删除您的供应商文件夹,然后安装 composer
composer install
Add this file
composer.json
"require": {
"snowfire/beautymail": "dev-master"
}
And than run this command
composer install
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.