2017-04-02 19 views
0

だから私は私のLaravelアプリ上で自分のパスワードリセットシステムを作成し、私はユーザーに回復のリンクを電子メールで送信する場合、ここに示されています:にhtmlentitiesとURLENCODE

<a href='{{ url("forgotpassword/reset?email={$user->email}&recovery={$recoveryString}") }}'>click this link and reset your password!</a> 

アンパサンドが「&」 。私は物事をやってみました

{{ url("forgotpassword/reset?email={$user->email} }}<?php echo urlencode('&'); ?>{{ recovery={$recoveryString}") }}'>click this link and reset your password!</a> }} 

が好きしかし、それは動作しません。

どうすればいいですか?

+0

使用 '{に配列として必要なパラメータを渡すことができ

Route::get('user/forgetpassword/{email}/{recoveryString}', [ 'as' => 'forgetpassword', 'uses' => '[email protected]' ]); 

この

<a href='{{ route("forgetpassword",array("[email protected]","recoveryString")) }}'>click this link and reset your password!</a> 

を試してみて、あなたのルートファイルにすることができます! '{{url(...)}}'の代わりに '' url(...)!!} 'を使います。 – devk

+1

実際それはしないかもしれません。 'echo'文はいつも' click this link and reset your password! ' – devk

+0

のように分けることができます。インターネットポイントが必要な場合は、回答を投稿してください –

答えて

0

あなたは.blade.php