无法在腻子命令行中运行作曲家更新

时间:2019-11-28 06:11:55

标签: php laravel composer-php

在我的本地目录中,我刚刚安装了beautymail用于发送laravel电子邮件,但是当我进入油灰应用程序并键入composer require snowfire/beautymail dev-master时,它会给我一个错误

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.

我该如何解决?我已经将代码推送到仓库中,之后我想安装beautymail软件包,因为在我的本地目录中,我已经发布了beautymail的资产。有人可以告诉我该怎么办?谢谢。

2 个答案:

答案 0 :(得分:1)

删除供应商文件夹,然后安装作曲家

composer install

答案 1 :(得分:0)

添加此文件

composer.json

composer install

然后运行该命令

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Example {

@SerializedName("srNo")
@Expose
private Integer srNo;
@SerializedName("date")
@Expose
private String date;
@SerializedName("fieldEngineer")
@Expose
private String fieldEngineer;
@SerializedName("accountName")
@Expose
private String accountName;
@SerializedName("irNo")
@Expose
private Integer irNo;
@SerializedName("joNo")
@Expose
private Integer joNo;
@SerializedName("address")
@Expose
private String address;
@SerializedName("contactPerson")
@Expose
private String contactPerson;
@SerializedName("designation")
@Expose
private String designation;
@SerializedName("contactNo")
@Expose
private String contactNo;
@SerializedName("email")
@Expose
private String email;
@SerializedName("timeIn")
@Expose
private String timeIn;
@SerializedName("timeOut")
@Expose
private String timeOut;
@SerializedName("productType")
@Expose
private String productType;
@SerializedName("problem")
@Expose
private String problem;

public Integer getSrNo() {
return srNo;
}

public void setSrNo(Integer srNo) {
this.srNo = srNo;
}

public String getDate() {
return date;
}

public void setDate(String date) {
this.date = date;
}

public String getFieldEngineer() {
return fieldEngineer;
}

public void setFieldEngineer(String fieldEngineer) {
this.fieldEngineer = fieldEngineer;
}

public String getAccountName() {
return accountName;
}

public void setAccountName(String accountName) {
this.accountName = accountName;
}

public Integer getIrNo() {
return irNo;
}

public void setIrNo(Integer irNo) {
this.irNo = irNo;
}

public Integer getJoNo() {
return joNo;
}

public void setJoNo(Integer joNo) {
this.joNo = joNo;
}

public String getAddress() {
return address;
}

public void setAddress(String address) {
this.address = address;
}

public String getContactPerson() {
return contactPerson;
}

public void setContactPerson(String contactPerson) {
this.contactPerson = contactPerson;
}

public String getDesignation() {
return designation;
}

public void setDesignation(String designation) {
this.designation = designation;
}

public String getContactNo() {
return contactNo;
}

public void setContactNo(String contactNo) {
this.contactNo = contactNo;
}

public String getEmail() {
return email;
}

public void setEmail(String email) {
this.email = email;
}

public String getTimeIn() {
return timeIn;
}

public void setTimeIn(String timeIn) {
this.timeIn = timeIn;
}

public String getTimeOut() {
return timeOut;
}

public void setTimeOut(String timeOut) {
this.timeOut = timeOut;
}

public String getProductType() {
return productType;
}

public void setProductType(String productType) {
this.productType = productType;
}

public String getProblem() {
return problem;
}

public void setProblem(String problem) {
this.problem = problem;
}

}