Laravel邮件事件有空消息

时间:2019-01-03 16:16:26

标签: php laravel laravel-5.7 sparkpost

我发送的电子邮件是:

{
  /* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
  "rules": {
    ".write": false,
    "$environment": {

      /* Data */
      "data": {
        "$client_id": {
            ".read": "$client_id === root.child($environment+'/users/'+auth.uid+'/client_id').val()"
        }
      },

      /* Account settings */
      "users": {
        "$uid": {
          ".read": "$uid === auth.uid"
        }
      }

    /* --------------------------------*/
    /* end environment, rules and json */
    }
  }
}

我有一个这样的侦听器(已在EventServiceProvider中注册):

state={
    name:'Ajith',
    name1: 'kumar',
    name2 : [],
    changeEdit:false
}

edit = () => {
    this.setState({
        changeEdit : !this.state.changeEdit
    });
    let array = {
        name : this.state.name,
        name1 : this.state.name1
    };
    let Name = this.state.name2;
    Name.push(array);
    this.setState({
        name2 : Name
    })
    console.log(this.state.name2)
}

update = (e) => {
    this.setState({
        changeEdit : !this.state.changeEdit,
        name : this.refs.Edit.value,
        name1 : this.refs.Edit1.value,
        name2 : this.refs.Edit2.value
    })

}

inputEditEvent = (e) => {
    return(
        <div


            <div>
                <input type="text" defaultValue={this.state.name} ref = "Edit" style={{height:'30px'}}/>
                <input type="text" defaultValue={this.state.name1} ref = "Edit1" style={{height:'30px'}}/>
                <input type="text" defaultValue={this.state.name2} ref = "Edit2" style={{height:'30px'}}/>
            </div>
            <div>    
                <Editings cancel={this.edit} update={this.update}/>
            </div>
        </div>
    )
}

editEvent = (e) => {
    return(
        <div>
            <button onClick={this.edit}>
                Edit
            </button>
            <h2>
                {this.state.name}<br/>
                {this.state.name}<br/>
                <br/>
                {this.state.name}
            </h2>
        </div> 
    )
}
render()
{
    return this.state.changeEdit ?
    this.inputEditEvent() : this.editEvent()
}

它显示类似:

Mail::to($to)->queue($mailable);

该消息为空。我正在使用SparkPost,但无法从SparkPost获取TransmissionId来进行未来的API调用。

0 个答案:

没有答案