Part 30 - Password Reset Emails [How to Build a Blog with Laravel 5 Series]

  Рет қаралды 49,661

DevMarketer

DevMarketer

Күн бұрын

Пікірлер: 184
@BryantRenaud
@BryantRenaud 7 жыл бұрын
This took me a LONG time to figure out on Laravel 5.4, but I eventually did. in case it helps, here are the routes you should use (all the views from the video seem to work fine): Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset'); Route::post('password/reset', 'Auth\ResetPasswordController@reset'); Secondly, you may need to check mailtrap's suggested settings for laravel. I updated my .env to be slightly different from Alex's in the video. specifically, i had to tweak to host and port: "host" => "smtp.mailtrap.io", "port" => 2525, PM me on twitter if you are also trying to get through this tutorial series with a more modern laravel and you have or want advice. @bryant_renaud good luck!
@Osteele
@Osteele 8 жыл бұрын
Can't thank you enough for all the hard work that you put into this video series. Much appreciated.
@ashishmadhavacharya4108
@ashishmadhavacharya4108 4 жыл бұрын
Before watching this video the oneI dont know much about mailtrap but after watching this I feel it's very good free mail service for development 👍👍
@ibrondtd
@ibrondtd 8 жыл бұрын
Hello from Hungary! Just love your lessons, it's fun to follow you coding/explaining. Keep this up!
@ademolaayobami8645
@ademolaayobami8645 7 жыл бұрын
i will comment again and again,you are the best tutor,,and thank you so much for your time.
@edutav
@edutav 8 жыл бұрын
Hello, i from brazilian, very good your video lessons! don't stop. ;)
@Faroo007DLI
@Faroo007DLI 7 жыл бұрын
Thanks for sharing such a wonderful tutorial which is very easy to understand.
@SanderBuruma
@SanderBuruma 6 жыл бұрын
all in all it took me 4 hours to get from start to finish in this video. The first 2 hours were spent figuring that I needed to be logged out in order to access the password reset form. For a while I was logged in and this caused the reset form to redirect me to the home page without an error message, took me a while to figure it out.
@elBrancho7
@elBrancho7 8 жыл бұрын
This is simple great! And the best of all is that u are learning with us together :D Great !
@gatb
@gatb 8 жыл бұрын
Awesome series && awesome teacher :) Thank you, Alex!
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
+Gabriel Bran glad you're enjoying it. Thanks!
@AbhimanyuNaikareWebDeveloper
@AbhimanyuNaikareWebDeveloper 6 жыл бұрын
At 33:37, you did not do the route in the anchor tag. Is it because it's allowed only in the controller and not in views?
@gayansandaruwandesilva4001
@gayansandaruwandesilva4001 8 жыл бұрын
In Laravel 5.2 the folder should be "password" not "passwords" wasted a lot of time looking through the Path you show use Illuminate\Foundation\Auth\ResetsPasswords; But How ever it was very help full for me to find about the structure. Thanks a lot for showing the way it happens not just showing how. Thanks again
@a_thousand_and_one_videos
@a_thousand_and_one_videos 8 жыл бұрын
Hello from Kazakhstan, your lessons awesome! go on :))
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
Kazakhstan, thats a new one. Welcome to the channel. You have made it far, keep going!
@leokhan2077
@leokhan2077 8 жыл бұрын
Hello! 12:21 We register route "password" (without [s]). Why password[s] view folder is working, and password (without [s]) not? ^
@MarcelloPato
@MarcelloPato 7 жыл бұрын
Greetings from Brasil, Alex! You are awesome!
@tanhaishi
@tanhaishi 8 жыл бұрын
at timeline 33:22, why are you not using "route" instead of "url". thanks.
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
It is because I don't think I had a named route set up for that, so we had to manually type the URL.
@niklaswennerstrand1010
@niklaswennerstrand1010 8 жыл бұрын
I am using laravel 5.2.41 and in this version the url() function do not work for login.blade.php "Forgot My Password". I cant click the link. The text is highlighted and underlined as a link but there is no link when clicking or hovering. If I input "/password/reset" in browser it works. Another viewer solved this with a plain html link. Not the laravel way is it? If you have the time to answer these questions it would be great. I have tried to find the answer in the laravel documentation but it is not clear to a beginner as me. How would I use route() for the link? How would I update the rotes.php file to include a name for this route? Only answer if it is a quick answer and you have the time for it.
@niklaswennerstrand1010
@niklaswennerstrand1010 8 жыл бұрын
Opps it was a typo error. Forgot the equal sign. So my advice to other is not to forget the equal sign in the href="link" :-)
@erjonhazizaj1707
@erjonhazizaj1707 8 жыл бұрын
Best Regard from Albania.
@zhacaitou
@zhacaitou 8 жыл бұрын
well done. learns a lot! thanks!
@ayuktia6397
@ayuktia6397 8 жыл бұрын
I can't change laravel formatting email in Laravel 5.3.. It's default.. so that makes email that should be returned in the input value is empty. Hopefully you can give tutorial how to change it for the next tutorial in laravel 5.3.
@massimilianoa5359
@massimilianoa5359 7 жыл бұрын
I don't know if I understood you correctly, but try to check in: /vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php and go to the "toMail" method (the last one). There is defined the email format. MA
@TheofilusAndreSaputra1
@TheofilusAndreSaputra1 7 жыл бұрын
->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false))) how i can change it?
@TheofilusAndreSaputra1
@TheofilusAndreSaputra1 7 жыл бұрын
found it, i added to the function : ->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false)).'?email='.urlencode($notifiable->email))
@viery3654
@viery3654 6 жыл бұрын
The email blade template is located here: "vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php"
@ashishmadhavacharya4108
@ashishmadhavacharya4108 4 жыл бұрын
That's a nice one mr.Alex 👍 i appreciate your effort 👏👏 but in laravel 5.8 I think we don't have to specify all that routes and views it will be built-in right
@agunggunawan5500
@agunggunawan5500 8 жыл бұрын
Will you add text formating in our blog. Add an image and more ?
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
+Agung Gunawan Yes thats coming up!
@ProgramaFlashPan
@ProgramaFlashPan 8 жыл бұрын
when i click on reset Password i get the message: Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation (View: C:\... esources\views\auth\emails\password.blade.php) ... how can i fix that?
@yschin5663
@yschin5663 8 жыл бұрын
I have a small question , why in the 'routes.php' we named it ' password/email' but the folder we created is 'passwords'? a extra s behind the folder name?
@ashganmustafa9031
@ashganmustafa9031 7 жыл бұрын
the function "showLinkRequestForm" return view("passwords/email")
@hamadminmgr
@hamadminmgr 7 жыл бұрын
The link shows localhost not localhost:8000 . How can I change this?
@poldelgado
@poldelgado 7 жыл бұрын
i have the same issue
@hamadminmgr
@hamadminmgr 7 жыл бұрын
I worked it out. Change your APP_URL=localhost in your .env file to APP_URL=localhost:8000
@IsmailBuzerJamher
@IsmailBuzerJamher 7 жыл бұрын
u guys just saved my day (Y)
@Kliamframe
@Kliamframe 6 жыл бұрын
Your lastname means Titties-son in my native language.. Thought it might interest you :)
@lancelot2068
@lancelot2068 6 жыл бұрын
please up vote this.. It's very important that they know what Brian did!
@N5862M
@N5862M 8 жыл бұрын
I ran into a problem where the Flash message wasn't being displayed. I tracked it down to using a newer version of Laravel (5.2.35) and having the Route::group(['middleware' => ['web']], function() {...}); in my routes.php. This is included by default in the newer version of Laravel, so it's not needed, and it was blocking the Flash messages coming up after sending the password reset link.
@johnkamau3442
@johnkamau3442 5 жыл бұрын
After updating gmail smtp settings and you still ran into an error, you can insert this code in your config/mail.php file 'stream' => [ 'ssl' => [ 'allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false, ],
@zhpeh
@zhpeh 8 жыл бұрын
Hi, I've followed your mailtrap.io instructions exactly but when i click the reset password button after entering my new password, the page just refreshes itself and fails to save the new password into my database nor redirects me to my homepage. Not sure what's the problem as I'm not getting any error messages. Could you help me with this?
@CamboTutorial
@CamboTutorial 8 жыл бұрын
Hello Alex, I am new with Laravel, I have followed long series of your vid, but reset password submit I got an error. I thought I missed something, however I tried to use shortcut auth by make:auth the error occurred the same as result below: **My Laravel version 5.2.45 FatalErrorException in ClassLoader.php line 335: Maximum function nesting level of '100' reached, aborting! Thanks for helping
@batmannhinho
@batmannhinho 5 жыл бұрын
When I use mail trap and config like in the video, I see the mail on mailtrap but does not receive it? any idea?
@gabrielnzete8913
@gabrielnzete8913 8 жыл бұрын
Everything is working fine and thank you for the tutorial but one little problem.......i have a error saying token field is required when i want to reset the password
@gabrielnzete8913
@gabrielnzete8913 8 жыл бұрын
I have fixed that error, got the name wrong in the reset.blade.php form field. Spelt "toke" instead of "token"... Form Nigeria
@leodike9196
@leodike9196 7 жыл бұрын
Hi how do I setup for recipient to receive the mails directly after my test with mailtrap
@joshnoni5609
@joshnoni5609 8 жыл бұрын
my flash messages don't appear automatically like in the tutorial. when i changed the password i tried to login, it just said error, but when i watched you do the same in the tutorial, it said error: the password doesn't match with the record.. why isn't mine working? need help please.
@harmonic1846
@harmonic1846 8 жыл бұрын
Could you do a profile page type thing also? if thats not a problem :)
@MJAD86
@MJAD86 7 жыл бұрын
the folder i created was called password and not passwords, and everything that i coded in this vid was in singular password, but i got errors in not finding the path... when i changed the folders name to plural it all worked. is it because is there some magic programed to use the folder in plural or em i missing something that havent checked yet?
@preetisingh9395
@preetisingh9395 7 жыл бұрын
not working sir.......give the error Connection could not be established with host smtp.mailtrap.io [Connection timed out #110]// BadMethodCallException Method [sendResetlinkEmail] does not exist on [App\Http\Controllers\Auth\PasswordController].
@ablaze2763
@ablaze2763 8 жыл бұрын
I'm using Laravel 5.3, and everything works fine but the thing is that when I write the new password after I've received that reset link, the password won't update in the database. I can still login with the old password..
@themathtechguy8559
@themathtechguy8559 7 жыл бұрын
For some reason i get "Swift_RfcCompliancexception in MailboxHeader.php line 345: address in mailbox given [text] doesnot compy with RFC 2822, 3.6.2" everything else seems fine but am stuck here. what could be wrong? otherwise thanks for the series
@taheralisonkachwala2955
@taheralisonkachwala2955 8 жыл бұрын
Sir, after receiving mail for password reset link, when i click that link and enter new password and confirm password and click reset password it shows me flash error message containing enter valid token. Please help me
@deathscythe3124
@deathscythe3124 7 жыл бұрын
sir please answer my question. does the laravel only allow 1 email request account. what if I registered 2 different emails in laravel then the email of two user contains @yahoo.com and @gmail.com address does the reset password link will sent into to different email? Im very confuse, im sorry.
@onakoyakorede
@onakoyakorede 7 жыл бұрын
thanks Alex, but guys i'm using laravel 5.4 and i'm getting an error 'TokenMismatchException' when i add the {{ Form::hidden('token', $token) }} to my reset.blade.php page. pls what's wrong?
@javadheidari6603
@javadheidari6603 8 жыл бұрын
not to ask a silly question but I am still puzzled as far as how to setup the email server if my site goes on live server. I mean would every client have to have for example, a gmail account to signup or reset password if I choose to set my parameters as gmail?
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
For production you need to find a production grade email service provider. Look into amazon SES, Sendgrid, Mailjet, Mailgun or something like that to send email. Then plug in your SMTP for that service and you will be good to go. Now it will send emails out through that service. You might need to setup DKIM for your domain or something, but thats it.
@javadheidari6603
@javadheidari6603 8 жыл бұрын
+DevMarketer sorry Alex but what is dkim?
@traciedavid8092
@traciedavid8092 8 жыл бұрын
@Game he stil dont get the question right..u mean how and where would your client received the email if sent..
@traciedavid8092
@traciedavid8092 8 жыл бұрын
thanks bt stil dont get it..pls reply"@Game he stil dont get the question right..u mean how and where would your client received the email if sent.."
@javadheidari6603
@javadheidari6603 8 жыл бұрын
+david echeta I was just curious if for example I set my env smtp for google gmail. Does that mean the users should have gmail to register?
@tobshashank
@tobshashank 8 жыл бұрын
how to make user view and manage their own posts in case of multi user?
@billclinton4308
@billclinton4308 6 жыл бұрын
Hello sir, after I successfully reset password i cant log in with the new password, I login with the old password instead I have two tables users table and password_resets table which is being updated when I reset my password. I would like to know how to go about this. Thank you.
@valpuia604
@valpuia604 7 жыл бұрын
Hello +DevMarketer, I got everything working fine till sending the message to my email. But instead of 26:42 View[auth.email.password] I used laravel default template. The token it sent to my email is not redirecting back to the reset.blade.php under Views.auth.passwords and shows that Error 404. Any Idea?
@valpuia604
@valpuia604 7 жыл бұрын
I got it right, but one question is the token doesn't send me the port number. Ex: Instead of localhost:8000/password/reset/mytoken it goes to localhost/password/reset/mytoken. How can I include my port number in default email template.
@ahmedfathy3720
@ahmedfathy3720 6 жыл бұрын
I have the same error .. how did you solve it ?
@massacre8529
@massacre8529 7 жыл бұрын
I am working with Laravel 5.4 and when I click send it sends the Laravel default email template not the one I created in emails/password. Does anyone know how to fix this?
@cromartie1984
@cromartie1984 7 жыл бұрын
same, apparently you need to do that in terminal : php artisan vendor:publish --tag=laravel-mail laracasts.com/discuss/channels/laravel/change-default-laravel-email-template-theme-sent-to-gmail-or-hotmail
@volikoto
@volikoto 7 жыл бұрын
I have to change the localhost in url to localhost:8000 and then the rest to successfully view the reset page.
@darkking23
@darkking23 7 жыл бұрын
I am having huge troubles with the user helper: Undefined variable: user (View: \laravel\blog esources\views\auth\emails\password.blade.php)
@traciedavid8092
@traciedavid8092 8 жыл бұрын
thank you very much
@preetisingh9395
@preetisingh9395 7 жыл бұрын
please help me i am new in larravel
@ahkoukkhalid9640
@ahkoukkhalid9640 8 жыл бұрын
Please I got this error when I clicked the Send Reset Password Link button in laravel 5.3.15 ErrorException in StreamBuffer.php line 95: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
@andrewang7637
@andrewang7637 8 жыл бұрын
Same here! Am waiting for anyone who can help. Thanks!
@andrewang707
@andrewang707 8 жыл бұрын
Hey AHKOUK, I finally managed to sort it out. I've just left the solution at the top of the video thread. You could have a look if you are still seeking the solution. Good luck!
@ahkoukkhalid9640
@ahkoukkhalid9640 8 жыл бұрын
Hi Andre, thank you for replying, I still have the same problem. I'm looking for the solution that you left. I can't find it. do you mean in comment ? Thank you
@eazylaykzy
@eazylaykzy 7 жыл бұрын
You can check is comment from below, he explained it there, and that actually worked for me
@kainushia1073
@kainushia1073 6 жыл бұрын
Alex why cant i send email?its saying email has been sent but i dont recive it in mailtrap.io ..please help me
@arturas1233
@arturas1233 8 жыл бұрын
Why session('status') does not work anymore? Is it something with new laravel version?
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
I don't know of anything like that in laravel 5. Session got completely rewritten between Laravel 4 and Laravel 5
@ablaze2763
@ablaze2763 8 жыл бұрын
It works.
@JahidGamer
@JahidGamer 8 жыл бұрын
Why we need this password.blade.php file under emails folder? Everything works fine without it
@muhaimenulislam8732
@muhaimenulislam8732 7 жыл бұрын
mailtrap is getting password reset link with "localhost" instead of "localhost:8000" ...can anyone help me to resolve this problem?
@JacurtisTutorials
@JacurtisTutorials 7 жыл бұрын
Change the APP_URL in your .env file
@stevensunflash3094
@stevensunflash3094 6 жыл бұрын
do this: APP_URL=localhost.:8000 if u are using another port number specify it
@devaiaizarry2235
@devaiaizarry2235 8 жыл бұрын
+Jacurtis Always gett this error :/ Connection could not be established with host mailtrap.io
@johnb8739
@johnb8739 8 жыл бұрын
Where are the Auth::routes() located in 5.3?
@mousahassan4686
@mousahassan4686 8 жыл бұрын
at vendor\laravel\Illuminate\Routing\Router.php auth() function .. or you can see Auth::routes() by this commend 'php artisan route:list'
@kalogaos
@kalogaos 8 жыл бұрын
For Laravel 5.4 there isn't a route called password.reset and the fix for this thing is the follow: Route::post('password/reset', ['uses' => 'Auth\ResetPasswordController@reset', 'as' => 'password.reset']);
@sobhywagih7145
@sobhywagih7145 8 жыл бұрын
hello alex thanks for your great tutorial can you give me a hint how to add csrf token when i submit any post request from restful api i am using dingo to create my end points and testing my API with chrome advanced rest client thanks
@sobhywagih7145
@sobhywagih7145 8 жыл бұрын
also can i use those post methods ( Auth\PasswordController@sendResetLinkEmail , Auth\PasswordController@reset ) to be my endpoints or i need to re implement them thanks and sorry for the long questions
@littlemini39
@littlemini39 8 жыл бұрын
when i'm trying it it is showing BadMethodCallException in Controller.php in line 283. Method [showResetForm] does not exist. it says this how to resolve it
@mosesegboh
@mosesegboh 4 жыл бұрын
Hello...please where you able to resolve the above problem?
@GURURAJug
@GURURAJug 8 жыл бұрын
Hi @Alex I have small doubt i.e how can I restrict user to directly open this url localhost:8000/password/email.
@arifnofriadi4126
@arifnofriadi4126 6 жыл бұрын
class Form not found, why me to fix this problem?
@traciedavid8092
@traciedavid8092 8 жыл бұрын
thanks bt stil dont get it..pls reply"@Game he stil dont get the question right..u mean how and where would your client received the email if sent.."
@redonhalimaj5487
@redonhalimaj5487 5 жыл бұрын
Why does my /password/reset/{token} display "Error 404, need some help???
@avijitmandal6729
@avijitmandal6729 7 жыл бұрын
nice sir
@gtd227
@gtd227 8 жыл бұрын
Hello While entering email for reset password I get the error ErrorException in StreamBuffer.php line 95: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed I don't know if theres anything wrong with my .env file I have the same things filled with my username and password from mail trap and port 25
@tonyjoe4272
@tonyjoe4272 7 жыл бұрын
Hi i have similar problem did you manage to resolve your error?
@elhoucineawixor3072
@elhoucineawixor3072 6 жыл бұрын
I get always an error (Maximum execution time of 30 seconds exceeded).. I tried changing port an tls to null but its not working.. I am using windowns xamp software BTW
@tobshashank
@tobshashank 8 жыл бұрын
And how to to add a admin to manage every thing
@yonted91
@yonted91 8 жыл бұрын
hei alex when i go localhost:8000/password/reset it show FatalErrorException in 076488255f0647116f890062a52f9580a197e8e6.php line 11: syntax error, unexpected '=', expecting ']' can u explain?
@CamboTutorial
@CamboTutorial 8 жыл бұрын
It must problem in view file
@pstlvictoras
@pstlvictoras 7 жыл бұрын
you forgot to close the array and the compialtor meet the = insted of ]
@johnb8739
@johnb8739 8 жыл бұрын
I was able to get the auth scaffolding to work on my xampp server by moving the auth::routes() to my main routes file
@joshnoni5609
@joshnoni5609 8 жыл бұрын
the second link on the header partial file to the style.css in public folder doesnt work. the first link to the bootstrap.css works fine. heres how i linked the first and second. line 10------------
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
+josh Noni Is your styles.css file in public/css/styles.css?
@joshnoni5609
@joshnoni5609 8 жыл бұрын
+Jacurtis yes it is
@joshnoni5609
@joshnoni5609 8 жыл бұрын
+Jacurtis i've solved the problem. Thanks. i forgot to close my opening tag with '>'.
@rasikkunwar5056
@rasikkunwar5056 7 жыл бұрын
It is working fine for me .the problem is that.in reset link i am not getting email. {{$link}} and also on password reset form .i am not getting my email value.plz response
@diarqoroviqi4869
@diarqoroviqi4869 7 жыл бұрын
I have the same problem, did you solve it.
@rasikkunwar5056
@rasikkunwar5056 7 жыл бұрын
Diar Qoroviqi no dude...
@oluwaseundurotoye8504
@oluwaseundurotoye8504 8 жыл бұрын
Hi everyone, I'm using laravel 5.3, after setting up my route file slightly different as peculiar to version 5.3, with password/reset pointing to ResetPasswordController@reset, password/email pointing to ForgotPasswordController@sendResetlinkEmail, and password/reset/{token?} pointing to ResetPasswordController@showResetForm...when I try to get the view for email.blade.php by typing password/reset in my url it displays the reset.blade.php view instead... they are both under the auth/passwords folder... Dunno what I'm missing, please someone help!..
@daniel_1st
@daniel_1st 8 жыл бұрын
It's because of his dumb tutorial, that's targeting all Laravel 5 versions. This will not work in Laravel 5.3
@ayuktia6397
@ayuktia6397 8 жыл бұрын
same here
@MJAD86
@MJAD86 7 жыл бұрын
Hey everyone im having this issue when im trying to resert the password: Expected response code 220 but got code "421", with message "421 Cannot connect to SMTP server 52.72.165.132 (52.72.165.132:25), connect error 10060 Im using 5.4 Can i get a hand here?
@MJAD86
@MJAD86 7 жыл бұрын
Ok so for those having this same issues i have some enligthment, first if you are using this tutorials method you muigth encounter this error and that can be due to your ISP provider having some filters for the SMTP on the ports you use, if thats the case, instead of using SMTP use ESP (recomended by curtis, havent test it yet), if the mailtrap method did not work or gives you this error you can also try to use, instead of mailtrap.io... smtp.mailtrap.io... ill leave an example of my config in the .env: MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=mailtrap user MAIL_PASSWORD=mailtrap password MAIL_ENCRYPTION=tls also for those working with laravel 5.4 your are going to find some aditional settings that have to be done so this can work. First forget about creating the view/auth/mails/paswords.blade.php... laravel 5.4 has an integrated template for mail password reset build in... so its gonna reach that intead of this folder... you could change it to yours but... i dont reomend since you have to change a lot of the magic and its troublesome if your learning. second, the mail is going to grab automaticly the token and address of the redirect to change the password, however the default main address is localhost, if by any means the address that you are using aint localhost but for example 127.0.0.1:8000 then your gonna get a page not found error... to fix this you have to go to bootstrap/cache/config.php and change the url that you ahve in there to the url that you are using... just the main page url not the hole thig... for example 127.0.0.1:8000... thats it... and presto. works like a charm. hope this helps anyone that encounters this issue.
@abdulhameed549
@abdulhameed549 7 жыл бұрын
how can i send to public mails like gmail,ymail,etc
@JacurtisTutorials
@JacurtisTutorials 7 жыл бұрын
Use real SMTP credentials instead of MailTrap which is only for development. Go signup for Amazon SES, Mailgun, Sparkpost, Mandrill or any of the other providers out there and then use those credentials instead of the mailtrap ones.
@kofimokome
@kofimokome 8 жыл бұрын
I'm using Laravel 5.2 and I've some issues when I open passwords/reset. I get this error: FatalErrorException in fbc30a95f5b8321ea2e57a2da07a6a7816b248f4.php line 10: syntax error, unexpected ';' I did exactly as you did in the tutorial. I'll be grateful if you or someone help me
@wibisonoindrawan5756
@wibisonoindrawan5756 5 жыл бұрын
tips : every time you changes somehting on .env file, you have to run 'php artisan config:cache'
@mgoid2288
@mgoid2288 8 жыл бұрын
please update how to insert image in your post :)
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
+mgo id its coming up :)
@rudisetiawan4152
@rudisetiawan4152 8 жыл бұрын
+Jacurtis Im waiting for part 31 :D
@tonyjoe4272
@tonyjoe4272 7 жыл бұрын
Hello, can anyone help? when i click the link in mailtrap to reset password i have this error am using laravel 5.4 ErrorException in HtmlBuilder.php line 53: htmlentities() expects parameter 1 to be string, array given (View: /Users/tonyjoe/Sites/blog/resources/views/auth/passwords/reset.blade.php)
@rasikkunwar5056
@rasikkunwar5056 7 жыл бұрын
same error appear on me,when i use port 25.and i change port to 2525 and it is working fine
@waleedphp6620
@waleedphp6620 8 жыл бұрын
guys if you have error tell u View auth.password not found change folder name password to passwords just add 's' to end
@shem2382
@shem2382 8 жыл бұрын
I'm using Laravel 5.3 anyone knows where the html is when sending the email link, so that i can modify it. it seems to be different than 5.2
@massimilianoa5359
@massimilianoa5359 7 жыл бұрын
try here: /vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php
@viery3654
@viery3654 6 жыл бұрын
The email blade template is located here: "vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php"
@daisywheel0101
@daisywheel0101 8 жыл бұрын
any body facing password confirmation error even if the values are matching. For some reason i am any tips on why? giving me headaches here for a while now
@songkersaha
@songkersaha 8 жыл бұрын
Please check the name of your password field and password_confirmation field of reset.blade.php
@boy4everjoy
@boy4everjoy 8 жыл бұрын
If anyone is having issues with the reset email failing because of a timeout ( taking too long to conect to the server ) , just change your port to something else ( 25, 465, 2525 ) mine works on 2525 .
@shahmirjadoon1322
@shahmirjadoon1322 8 жыл бұрын
+boy4everjoy still got the timeout (stream_socket_enable_crypto(): SSL: Handshake timed out), i tried all the 3ports (25, 465, 2525). Any idea, wht to do nw?
@shahmirjadoon1322
@shahmirjadoon1322 8 жыл бұрын
+boy4everjoy it worked nw, I changed the MAIL_ENCRYPTION=tls to MAIL_ENCRYPTION=null
@victorifeanyi33
@victorifeanyi33 8 жыл бұрын
2525 works. 25 was given me some error. Maybe because of timeout
@branoraguz6666
@branoraguz6666 5 жыл бұрын
thaaaaaaanks man
@ricardopires7564
@ricardopires7564 4 жыл бұрын
Guys if you're having this error :" Route [password.update] not defined. (View etc... " Just make sure you put: "->name('password.update');" on the post route that points to the ResetPasswordController@reset >> the full route is: Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
@AbhimanyuNaikareWebDeveloper
@AbhimanyuNaikareWebDeveloper 6 жыл бұрын
Reset password no success for me :(
@AbhimanyuNaikareWebDeveloper
@AbhimanyuNaikareWebDeveloper 6 жыл бұрын
And magically it's now working fine :) I really am astounded why it is happening?!!
@Epsonworkforcewf7710
@Epsonworkforcewf7710 8 жыл бұрын
I am using laravel 5.3 to follow along this tutorial series. When I click this link :localhost/Blog/public/password/reset/a051fde545ec808f785666b290ab5e4ea6a3ac6f5d1c825bd6e4b62cac9ba87f on my mailtrap I get redirected to the passwords/reset page with the reset password form instead of the page that requires me to enter a new password. Anyone with suggestions on how I can fix this?
@nubgrammer
@nubgrammer 8 жыл бұрын
it worked on laravel5.3 also. follow these steps same. on route web.php, just insert this below codes instead of this video // Password Reset Routes... $router->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm'); $router->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail'); $router->get('password/reset/{token?}', 'Auth\ResetPasswordController@showResetForm'); $router->post('password/reset', 'Auth\ResetPasswordController@reset');
@Epsonworkforcewf7710
@Epsonworkforcewf7710 8 жыл бұрын
Thank you for the response, I got it figured out though. In laravel 5.3 it is easier to use php artisan make:auth to set up the authentication. Works like a charm.
@SaznajSve
@SaznajSve 6 жыл бұрын
I am using Laravel 5.6 , every time when I try to open link like this (localhost/password/reset/f1ee8e4c9c6045cfe5044ae37ef130de664f3a6eaa2c1fb050308c5e9ba6ccbd), I get page "Object not found!" . I have set up all views, controllers, created same job as Alex, just Reset Emails joking with me . Does anyone have same problem?
@stevensunflash3094
@stevensunflash3094 6 жыл бұрын
observe that in the above url, it not displaying the port number manually edit it: localhost:8000/password/reset/f1ee8e4c9c6045cfe5044ae37ef130de664f3a6eaa2c1fb050308c5e9ba6ccbd this will work. To provide a permanent solution, change ur .env file: APP_URL=localhost:8000 This is the fifth line of ur .env file. When you do, restart your server from your command line( ie php artisan serve) or while the server is still running, in another command line environment type: php artisan config:cache or php artisan config:clear Now u dont manually need to edit. when you click the reset button, it takes you straight to the form to reset the password. Best Regards. More other issues, reach me on twitter: @stevensunflash
@SaznajSve
@SaznajSve 6 жыл бұрын
Yes, I figured out, also I forgot to set up DB_HOST (.env) to local. Thank you anyway!
@alfredoizquierdo8007
@alfredoizquierdo8007 8 жыл бұрын
hello I am spike Spanish my English is no well but , this video tutorial is great thanks so much for this.One ask , (1) I followed this course, but when i try send email I dont have any error but do not receive any email , I use gmail and I activate already in my account the gmail security for app but nothing happens, please some one can help me thanks.
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
There is a setting you need to enable that says "make gmail less secure" or something like that. support.google.com/accounts/answer/6010255?hl=en Do this and it should work. The truth is that for production, you probably want to use an actual mail server like Amazon SES or MailJet or Mailgun, or any of these services. They usually have thousands of free emails every month included for free and they are more reliable and less likely to end up in spam folders. However, if you want to try something basic right now for this tutorial, give that a try to see if you can get gmail working for you. I tried it and i know it will work once you change that setting.
@songkersaha
@songkersaha 8 жыл бұрын
While i am submitting my email from this route "localhost:8000/password/reset" it goes to this route "localhost:8000/password/email" and return an error like "InvalidArgumentException in FileViewFinder.php line 137: View [auth.emails.password] not found." Thank you very much Alex for your organized great tutorial series. It is very helpful. Could anybody help me please ?
@songkersaha
@songkersaha 8 жыл бұрын
Oh sorry I made a mistake 'password.balde.php' insted of 'password.blade.php'
@AMC-throwaway
@AMC-throwaway 7 жыл бұрын
socketlabs has a free 2000 plan if you want a smtp server
@AMC-throwaway
@AMC-throwaway 7 жыл бұрын
Or mailjet has a 6,000 free plan
@massimilianoa5359
@massimilianoa5359 7 жыл бұрын
With Laravel 5.4 you just need to type the command "php artisan make:auth" and automatically Laravel generates, among others, the routes: => POST->password/email->password.email => POST->password/reset => GET->password/reset->password.request => GET->password/reset/{token}->password.reset so you don't have to write them like in the video. MA
@exogendesign4582
@exogendesign4582 3 жыл бұрын
I have watched that, but knowing how it works like in the video give me an Idea what it does. I am still new with php and laravel so it really helps a lot how he did it, I also know "php artisan make:auth" but can't figure out where all the stuff I need to configure it. this video helped me a lot with that.
@andrewang707
@andrewang707 8 жыл бұрын
In case anyone who comes across the same issue that's got me stuck for 2 days: ErrorException in StreamBuffer.php line 95: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: Here are two possible solutions: 1) Get rid of "tls" and leave MAIL_ENCRYPTION as blank. 2) If you are on MacOS Sierra and want to keep your 'tls' setting, type these two lines in your terminal/shall: $ sudo mkdir -p /usr/local/libressl/etc/ssl/certs $ sudo curl -o /usr/local/libressl/etc/ssl/cert.pem curl.haxx.se/ca/cacert.pem The two lines basically help you create the default folder and import the latest certificate store from curl.haxx.se. Here is the source article I got if interested: andrewyager.com/2016/10/04/php-on-macos-sierra-cant-access-ssl-data/comment-page-1/#comment-52 Hope it helps.
@eazylaykzy
@eazylaykzy 7 жыл бұрын
This pretty much worked for me, tho the second option using the sudo - Terminal. Thanks m8
@AMC-throwaway
@AMC-throwaway 6 жыл бұрын
Anyone watching this now and wondering why the email and subject in the reset is still showing example can try running php artisan config:cache and then restart the server
@AMC-throwaway
@AMC-throwaway 6 жыл бұрын
Inna Kairite well I always come back to this series for little things here and there. But when you the error, what have you done to get that far?
@viery3654
@viery3654 6 жыл бұрын
you have to change the settings of the mail driver in the .env file. I had the same error. For instance: MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=5893455656456c MAIL_PASSWORD=2a345354345fdw MAIL_ENCRYPTION=tls use the credentials of your inbox in mailtrap. Then, restart the server.
@rikimarusaintpreux8448
@rikimarusaintpreux8448 7 жыл бұрын
git hub is not a complete files
@SubashAryc
@SubashAryc 7 жыл бұрын
Not using form helper: reset.blade.php Email: Password: Password Confirmation: email.blade.php Email: {{ csrf_field() }}
@sakata_gintoki007
@sakata_gintoki007 7 жыл бұрын
When I used Form helper exactly like Alex, my password didn't change. But when I use normal html FORM tag at that time Reset Password worked well. Don't Understand what actually happened ...
@jh-to4us
@jh-to4us 7 жыл бұрын
panel is removed in latest bootstrap. check it out guys if you are having a problem with it. getbootstrap.com/docs/4.0/migration/#panels
@dadaarno6194
@dadaarno6194 8 жыл бұрын
Some SMTP config here : www.yetesoft.com/free-email-marketing-resources/pop-smtp-server-settings/
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
+Dada Arno very nice, thank you for sharing with everyone. Ill give it a bump!
@dashtyfrya4894
@dashtyfrya4894 7 жыл бұрын
ZOOR GW AXOY ! Get to the point quickly
@elkinfajardo3187
@elkinfajardo3187 8 жыл бұрын
hi, i have this error "Address in mailbox given [] does not comply with RFC 2822, 3.6.2"
@TahrinAziz
@TahrinAziz 7 жыл бұрын
i have changed my database column name to userEmail. So which lines need to be changed in the ResetsPasswords and SendsPasswordResetEmails files?
@amanmittal9595
@amanmittal9595 5 жыл бұрын
Method showResetForm does not exist error is coming?
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН