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!
@Osteele8 жыл бұрын
Can't thank you enough for all the hard work that you put into this video series. Much appreciated.
@ashishmadhavacharya41084 жыл бұрын
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 👍👍
@ibrondtd8 жыл бұрын
Hello from Hungary! Just love your lessons, it's fun to follow you coding/explaining. Keep this up!
@ademolaayobami86457 жыл бұрын
i will comment again and again,you are the best tutor,,and thank you so much for your time.
@edutav8 жыл бұрын
Hello, i from brazilian, very good your video lessons! don't stop. ;)
@Faroo007DLI7 жыл бұрын
Thanks for sharing such a wonderful tutorial which is very easy to understand.
@SanderBuruma6 жыл бұрын
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.
@elBrancho78 жыл бұрын
This is simple great! And the best of all is that u are learning with us together :D Great !
@gatb8 жыл бұрын
Awesome series && awesome teacher :) Thank you, Alex!
@JacurtisTutorials8 жыл бұрын
+Gabriel Bran glad you're enjoying it. Thanks!
@AbhimanyuNaikareWebDeveloper6 жыл бұрын
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?
@gayansandaruwandesilva40018 жыл бұрын
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_videos8 жыл бұрын
Hello from Kazakhstan, your lessons awesome! go on :))
@JacurtisTutorials8 жыл бұрын
Kazakhstan, thats a new one. Welcome to the channel. You have made it far, keep going!
@leokhan20778 жыл бұрын
Hello! 12:21 We register route "password" (without [s]). Why password[s] view folder is working, and password (without [s]) not? ^
@MarcelloPato7 жыл бұрын
Greetings from Brasil, Alex! You are awesome!
@tanhaishi8 жыл бұрын
at timeline 33:22, why are you not using "route" instead of "url". thanks.
@JacurtisTutorials8 жыл бұрын
It is because I don't think I had a named route set up for that, so we had to manually type the URL.
@niklaswennerstrand10108 жыл бұрын
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.
@niklaswennerstrand10108 жыл бұрын
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" :-)
@erjonhazizaj17078 жыл бұрын
Best Regard from Albania.
@zhacaitou8 жыл бұрын
well done. learns a lot! thanks!
@ayuktia63978 жыл бұрын
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.
@massimilianoa53597 жыл бұрын
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
@TheofilusAndreSaputra17 жыл бұрын
->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false))) how i can change it?
@TheofilusAndreSaputra17 жыл бұрын
found it, i added to the function : ->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false)).'?email='.urlencode($notifiable->email))
@viery36546 жыл бұрын
The email blade template is located here: "vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php"
@ashishmadhavacharya41084 жыл бұрын
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
@agunggunawan55008 жыл бұрын
Will you add text formating in our blog. Add an image and more ?
@JacurtisTutorials8 жыл бұрын
+Agung Gunawan Yes thats coming up!
@ProgramaFlashPan8 жыл бұрын
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?
@yschin56638 жыл бұрын
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?
@ashganmustafa90317 жыл бұрын
the function "showLinkRequestForm" return view("passwords/email")
@hamadminmgr7 жыл бұрын
The link shows localhost not localhost:8000 . How can I change this?
@poldelgado7 жыл бұрын
i have the same issue
@hamadminmgr7 жыл бұрын
I worked it out. Change your APP_URL=localhost in your .env file to APP_URL=localhost:8000
@IsmailBuzerJamher7 жыл бұрын
u guys just saved my day (Y)
@Kliamframe6 жыл бұрын
Your lastname means Titties-son in my native language.. Thought it might interest you :)
@lancelot20686 жыл бұрын
please up vote this.. It's very important that they know what Brian did!
@N5862M8 жыл бұрын
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.
@johnkamau34425 жыл бұрын
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, ],
@zhpeh8 жыл бұрын
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?
@CamboTutorial8 жыл бұрын
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
@batmannhinho5 жыл бұрын
When I use mail trap and config like in the video, I see the mail on mailtrap but does not receive it? any idea?
@gabrielnzete89138 жыл бұрын
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
@gabrielnzete89138 жыл бұрын
I have fixed that error, got the name wrong in the reset.blade.php form field. Spelt "toke" instead of "token"... Form Nigeria
@leodike91967 жыл бұрын
Hi how do I setup for recipient to receive the mails directly after my test with mailtrap
@joshnoni56098 жыл бұрын
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.
@harmonic18468 жыл бұрын
Could you do a profile page type thing also? if thats not a problem :)
@MJAD867 жыл бұрын
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?
@preetisingh93957 жыл бұрын
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].
@ablaze27638 жыл бұрын
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..
@themathtechguy85597 жыл бұрын
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
@taheralisonkachwala29558 жыл бұрын
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
@deathscythe31247 жыл бұрын
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.
@onakoyakorede7 жыл бұрын
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?
@javadheidari66038 жыл бұрын
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?
@JacurtisTutorials8 жыл бұрын
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.
@javadheidari66038 жыл бұрын
+DevMarketer sorry Alex but what is dkim?
@traciedavid80928 жыл бұрын
@Game he stil dont get the question right..u mean how and where would your client received the email if sent..
@traciedavid80928 жыл бұрын
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.."
@javadheidari66038 жыл бұрын
+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?
@tobshashank8 жыл бұрын
how to make user view and manage their own posts in case of multi user?
@billclinton43086 жыл бұрын
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.
@valpuia6047 жыл бұрын
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?
@valpuia6047 жыл бұрын
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.
@ahmedfathy37206 жыл бұрын
I have the same error .. how did you solve it ?
@massacre85297 жыл бұрын
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?
@cromartie19847 жыл бұрын
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
@volikoto7 жыл бұрын
I have to change the localhost in url to localhost:8000 and then the rest to successfully view the reset page.
@darkking237 жыл бұрын
I am having huge troubles with the user helper: Undefined variable: user (View: \laravel\blog esources\views\auth\emails\password.blade.php)
@traciedavid80928 жыл бұрын
thank you very much
@preetisingh93957 жыл бұрын
please help me i am new in larravel
@ahkoukkhalid96408 жыл бұрын
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
@andrewang76378 жыл бұрын
Same here! Am waiting for anyone who can help. Thanks!
@andrewang7078 жыл бұрын
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!
@ahkoukkhalid96408 жыл бұрын
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
@eazylaykzy7 жыл бұрын
You can check is comment from below, he explained it there, and that actually worked for me
@kainushia10736 жыл бұрын
Alex why cant i send email?its saying email has been sent but i dont recive it in mailtrap.io ..please help me
@arturas12338 жыл бұрын
Why session('status') does not work anymore? Is it something with new laravel version?
@JacurtisTutorials8 жыл бұрын
I don't know of anything like that in laravel 5. Session got completely rewritten between Laravel 4 and Laravel 5
@ablaze27638 жыл бұрын
It works.
@JahidGamer8 жыл бұрын
Why we need this password.blade.php file under emails folder? Everything works fine without it
@muhaimenulislam87327 жыл бұрын
mailtrap is getting password reset link with "localhost" instead of "localhost:8000" ...can anyone help me to resolve this problem?
@JacurtisTutorials7 жыл бұрын
Change the APP_URL in your .env file
@stevensunflash30946 жыл бұрын
do this: APP_URL=localhost.:8000 if u are using another port number specify it
@devaiaizarry22358 жыл бұрын
+Jacurtis Always gett this error :/ Connection could not be established with host mailtrap.io
@johnb87398 жыл бұрын
Where are the Auth::routes() located in 5.3?
@mousahassan46868 жыл бұрын
at vendor\laravel\Illuminate\Routing\Router.php auth() function .. or you can see Auth::routes() by this commend 'php artisan route:list'
@kalogaos8 жыл бұрын
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']);
@sobhywagih71458 жыл бұрын
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
@sobhywagih71458 жыл бұрын
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
@littlemini398 жыл бұрын
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
@mosesegboh4 жыл бұрын
Hello...please where you able to resolve the above problem?
@GURURAJug8 жыл бұрын
Hi @Alex I have small doubt i.e how can I restrict user to directly open this url localhost:8000/password/email.
@arifnofriadi41266 жыл бұрын
class Form not found, why me to fix this problem?
@traciedavid80928 жыл бұрын
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.."
@redonhalimaj54875 жыл бұрын
Why does my /password/reset/{token} display "Error 404, need some help???
@avijitmandal67297 жыл бұрын
nice sir
@gtd2278 жыл бұрын
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
@tonyjoe42727 жыл бұрын
Hi i have similar problem did you manage to resolve your error?
@elhoucineawixor30726 жыл бұрын
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
@tobshashank8 жыл бұрын
And how to to add a admin to manage every thing
@yonted918 жыл бұрын
hei alex when i go localhost:8000/password/reset it show FatalErrorException in 076488255f0647116f890062a52f9580a197e8e6.php line 11: syntax error, unexpected '=', expecting ']' can u explain?
@CamboTutorial8 жыл бұрын
It must problem in view file
@pstlvictoras7 жыл бұрын
you forgot to close the array and the compialtor meet the = insted of ]
@johnb87398 жыл бұрын
I was able to get the auth scaffolding to work on my xampp server by moving the auth::routes() to my main routes file
@joshnoni56098 жыл бұрын
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------------
@JacurtisTutorials8 жыл бұрын
+josh Noni Is your styles.css file in public/css/styles.css?
@joshnoni56098 жыл бұрын
+Jacurtis yes it is
@joshnoni56098 жыл бұрын
+Jacurtis i've solved the problem. Thanks. i forgot to close my opening tag with '>'.
@rasikkunwar50567 жыл бұрын
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
@diarqoroviqi48697 жыл бұрын
I have the same problem, did you solve it.
@rasikkunwar50567 жыл бұрын
Diar Qoroviqi no dude...
@oluwaseundurotoye85048 жыл бұрын
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_1st8 жыл бұрын
It's because of his dumb tutorial, that's targeting all Laravel 5 versions. This will not work in Laravel 5.3
@ayuktia63978 жыл бұрын
same here
@MJAD867 жыл бұрын
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?
@MJAD867 жыл бұрын
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.
@abdulhameed5497 жыл бұрын
how can i send to public mails like gmail,ymail,etc
@JacurtisTutorials7 жыл бұрын
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.
@kofimokome8 жыл бұрын
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
@wibisonoindrawan57565 жыл бұрын
tips : every time you changes somehting on .env file, you have to run 'php artisan config:cache'
@mgoid22888 жыл бұрын
please update how to insert image in your post :)
@JacurtisTutorials8 жыл бұрын
+mgo id its coming up :)
@rudisetiawan41528 жыл бұрын
+Jacurtis Im waiting for part 31 :D
@tonyjoe42727 жыл бұрын
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)
@rasikkunwar50567 жыл бұрын
same error appear on me,when i use port 25.and i change port to 2525 and it is working fine
@waleedphp66208 жыл бұрын
guys if you have error tell u View auth.password not found change folder name password to passwords just add 's' to end
@shem23828 жыл бұрын
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
The email blade template is located here: "vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php"
@daisywheel01018 жыл бұрын
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
@songkersaha8 жыл бұрын
Please check the name of your password field and password_confirmation field of reset.blade.php
@boy4everjoy8 жыл бұрын
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 .
@shahmirjadoon13228 жыл бұрын
+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?
@shahmirjadoon13228 жыл бұрын
+boy4everjoy it worked nw, I changed the MAIL_ENCRYPTION=tls to MAIL_ENCRYPTION=null
@victorifeanyi338 жыл бұрын
2525 works. 25 was given me some error. Maybe because of timeout
@branoraguz66665 жыл бұрын
thaaaaaaanks man
@ricardopires75644 жыл бұрын
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');
@AbhimanyuNaikareWebDeveloper6 жыл бұрын
Reset password no success for me :(
@AbhimanyuNaikareWebDeveloper6 жыл бұрын
And magically it's now working fine :) I really am astounded why it is happening?!!
@Epsonworkforcewf77108 жыл бұрын
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?
@nubgrammer8 жыл бұрын
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');
@Epsonworkforcewf77108 жыл бұрын
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.
@SaznajSve6 жыл бұрын
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?
@stevensunflash30946 жыл бұрын
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
@SaznajSve6 жыл бұрын
Yes, I figured out, also I forgot to set up DB_HOST (.env) to local. Thank you anyway!
@alfredoizquierdo80078 жыл бұрын
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.
@JacurtisTutorials8 жыл бұрын
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.
@songkersaha8 жыл бұрын
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 ?
@songkersaha8 жыл бұрын
Oh sorry I made a mistake 'password.balde.php' insted of 'password.blade.php'
@AMC-throwaway7 жыл бұрын
socketlabs has a free 2000 plan if you want a smtp server
@AMC-throwaway7 жыл бұрын
Or mailjet has a 6,000 free plan
@massimilianoa53597 жыл бұрын
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
@exogendesign45823 жыл бұрын
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.
@andrewang7078 жыл бұрын
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.
@eazylaykzy7 жыл бұрын
This pretty much worked for me, tho the second option using the sudo - Terminal. Thanks m8
@AMC-throwaway6 жыл бұрын
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-throwaway6 жыл бұрын
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?
@viery36546 жыл бұрын
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.
@rikimarusaintpreux84487 жыл бұрын
git hub is not a complete files
@SubashAryc7 жыл бұрын
Not using form helper: reset.blade.php Email: Password: Password Confirmation: email.blade.php Email: {{ csrf_field() }}
@sakata_gintoki0077 жыл бұрын
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-to4us7 жыл бұрын
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
@dadaarno61948 жыл бұрын
Some SMTP config here : www.yetesoft.com/free-email-marketing-resources/pop-smtp-server-settings/
@JacurtisTutorials8 жыл бұрын
+Dada Arno very nice, thank you for sharing with everyone. Ill give it a bump!
@dashtyfrya48947 жыл бұрын
ZOOR GW AXOY ! Get to the point quickly
@elkinfajardo31878 жыл бұрын
hi, i have this error "Address in mailbox given [] does not comply with RFC 2822, 3.6.2"
@TahrinAziz7 жыл бұрын
i have changed my database column name to userEmail. So which lines need to be changed in the ResetsPasswords and SendsPasswordResetEmails files?
@amanmittal95955 жыл бұрын
Method showResetForm does not exist error is coming?