2017-03-23 19 views
1

私はルーメン5.3でPasswordReset APIを作成しようとしています。ルーメンのパスワードリセット5.3

私はデフォルトのLaravel 5.3アプリから同じ設定をしました。

$app->post('/password/email', '[email protected]'); 
$app->post('/password/reset/{token}', '[email protected]'); 

と、次のようにユーザーのモデルに私は、メソッドをオーバーライドしてきました:私は手動ルーメン5.3

のための通知のパッケージに引っ張ってきた

public function sendPasswordResetNotification($token) 
{ 
     $this->notify(new ResetPasswordNotification($token)); 
} 

しかし、私は取得しています次のエラー:

BindingResolutionException in Container.php line 763: 
Target [Illuminate\Contracts\Mail\Mailer] is not instantiable while building [Illuminate\Notifications\Channels\MailChannel]. 

私はここで何が欠けていますか?

+0

に次の行を追加します。 –

答えて

0

あなたが任意の解決策を見つけた私は、同じ問題を持っているあなたのbootstrap/app.php

$app->alias('mailer', \Illuminate\Contracts\Mail\Mailer::class); 
関連する問題