Hello I've a problem with my project.
I used the make:auth to create automatically the login,registration and reset password page.
I modified the env.file so that i can send the password reset link to the email using mailtrap, and it works, but there is another problem. When i click on the Reset Password button in the email it redirects me to a Error not found page. I wrote down the routes in web.php based on php artisan route:list I looked the controllers I checked the URL's nothing wrong it jusst wont open the reset.blade.php. If anyone could give any useful suggestions I'd be grateful.
Thankyou very much.
if you are asking about the domain in my site its in localhost and first I got the error not being able to find such a page.But i edited my env file (ADD_URL) and php artisan config:cache and clear, then it started to open on the right domain but with the Error 404.
this is my action in Illuminate\Auth\Notifications\ResetPassword.php:
->action(Lang::getFromJson('Reset Password'), url(config('app.url').route('password.reset', ['token' => $this->token], false)))
@EJDELMONICO - no I used the standart ones, i didnt change a single thing.
this are the routes that i wrote in my web.php:
Route::post('/password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::post('/password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
Route::get('/password/reset','Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::get('/password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
Well, as Snapey indicated, if you are using Valet or Homestead, you should be serving your site with public as the root for the webserver. Then change your APP_URL to http://myApp.test in the .env file.
@EJDELMONICO - now im getting "Payload is invalid"
this is in my illuminate\auth\notification\resetpassword:
return (new MailMessage)
->subject(Lang::getFromJson('Reset Password Notification'))
->line(Lang::getFromJson('You are receiving this email because we received a password reset request for your account.'))
->action(Lang::getFromJson('Reset Password'), url(config('app.url').route('password.reset', ['token' => $this->token], false)))
->line(Lang::getFromJson('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.users.expire')]))
->line(Lang::getFromJson('If you did not request a password reset, no further action is required.'));
well thankyou but it aint working,I used migrate:fresh, restarted the xampp server used confgi:cache so that i genereate a fresh token but still invalid payload. I have no idea where to look anymore so im just trying it in a new project maybe it will work there who knows, but thankyou very much for your generosity and help, i really appreciate it.