draw134
draw134

Reputation: 1187

Cant run composer update in putty command line

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.

Upvotes: 0

Views: 2431

Answers (2)

albus_severus
albus_severus

Reputation: 3704

Add this file

composer.json

"require": {
   "snowfire/beautymail": "dev-master"
}

And than run this command

composer install

Upvotes: 0

hanie
hanie

Reputation: 328

Delete Your vendor folder and then install composer

composer install

Upvotes: 1

Related Questions