Create a User Registration System with Email Verification - Laravel (2020)

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 116

  • @coderawesome
    @coderawesome  4 роки тому +2

    Complete Tutorial on Sending Emails with Laravel Mailable Class
    ua-cam.com/video/yEPK2LpbgDk/v-deo.html
    Create a REST API with Laravel
    ua-cam.com/video/uJIHJ_i3oNc/v-deo.html

  • @livymarilyn509
    @livymarilyn509 2 роки тому

    Very functional bro to send campaign emails.

  • @UTravis
    @UTravis 2 роки тому +1

    This video was truly helpful and educative. Thanks a lot!!!

    • @coderawesome
      @coderawesome  10 місяців тому

      thank you so much for your feedback!

  • @ceo.ordevs
    @ceo.ordevs 3 роки тому +1

    Very nice video. Thanks a lot brother. I have implemented verification learning from here.

  • @vusampofu9840
    @vusampofu9840 3 роки тому +1

    Thanks for the awesome tutorial my email verification is working,before I did the email verfication, I was to validate if email alredy exist, but now Im getting this SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry

    • @coderawesome
      @coderawesome  3 роки тому +1

      Thanks a lot! You can use Validator class add a validation rule to check if the email already exists.

    • @vusampofu9840
      @vusampofu9840 3 роки тому

      @@coderawesome tks sorted

  • @posadzd7343
    @posadzd7343 3 роки тому +2

    good tutorial, thanks very much. How do I make the link expire after a particular time?

    • @coderawesome
      @coderawesome  3 роки тому +1

      Thanks! That's fairly easy. When marking the user as a valid one, after comparing the code from email, check with the created_at property with the current date and time. If that gap or the difference is too longer than your desired gap, then don't mark the user as a valid one. Show a custom error message too.

  • @mythzee5710
    @mythzee5710 3 роки тому +1

    Thank you bro nice tutorial.. but it can be used to send email for production ? i mean if i hosting my laravel project can i send the email tho using this? or this just can be working on localhost ?

    • @coderawesome
      @coderawesome  3 роки тому

      Thanks! Yes you can use this in production.

    • @mythzee5710
      @mythzee5710 3 роки тому

      @@coderawesome yeah thanks mate, i already hosted my project, and its work fine.

    • @trisadivia8241
      @trisadivia8241 2 роки тому

      @@mythzee5710 how u write href at signup.blade? i'm newbie at laravel hope u can answer me

  • @godwineffiong7443
    @godwineffiong7443 4 роки тому +1

    Thank you so much for this tutorial. You are wonderful. However, I encountered a problem and I have been stucked for 3 days now. I keep getting this error "class 'illuminate\Support\Facades\Mail' not found. despite adding the file to my controller page.
    Please kindly offer some suggestions that will help me out of this issue. Thanks

    • @coderawesome
      @coderawesome  4 роки тому +1

      You're welcome!
      Did you import that class to the controller ? I was using PHPStorm as the IDE. It auto imports all the classes and libraries. So, I might not have imported it manually in the video.

    • @godwineffiong7443
      @godwineffiong7443 4 роки тому +1

      Problem solved. Thanks a million. Looking forward to more awesome vidz from u

  • @Tahsin-Ahmed
    @Tahsin-Ahmed 3 роки тому +1

    Thank you so much ! Successfully added on my project

    • @coderawesome
      @coderawesome  3 роки тому

      Glad it helped! Thanks for the comment!

  • @steveopiyo1431
    @steveopiyo1431 2 роки тому +1

    This is a great tutorial. Thank you for the amazing content!

    • @coderawesome
      @coderawesome  10 місяців тому

      Glad you liked it! You're most welcome!

  • @bomirhocode5442
    @bomirhocode5442 4 роки тому +1

    Thank you man. Awesome tutorial. This is exactly what I need to implement to my app.

  • @Anonymouseab
    @Anonymouseab 2 роки тому +1

    thanks brother but the github code is error like this
    Address in mailbox given [] does not comply with RFC 2822, 3.6.2.

    • @coderawesome
      @coderawesome  10 місяців тому

      This error is generally caused when the email filed is empty

  • @sameera-dananjaya-wijerathna
    @sameera-dananjaya-wijerathna 3 роки тому +1

    This is really awesome tutorial. Please do more !!! thanks! master

  • @yashjagdale2094
    @yashjagdale2094 2 роки тому +1

    Symfony\Component\Routing\Exception\RouteNotFoundException
    Route [verification.notice] not defined. i got this error sir please guide me

  • @riteshbhagat4065
    @riteshbhagat4065 4 роки тому +1

    Which editor you use?

  • @chome4
    @chome4 4 роки тому +1

    All tutorials use gmail as email examples. The verification link appears as plain text if you use yahoo or hotmail and cannot be clicked!

    • @coderawesome
      @coderawesome  4 роки тому

      Yeah, agreed. Always keep the link as a plain link just in case. So that the user can copy it and paste it in the browser.

  • @mohammadtalha304
    @mohammadtalha304 3 роки тому +1

    Thank you so much explained really well

  • @guruhkharisma
    @guruhkharisma 4 роки тому +2

    I get error code like this Swift_RfcComplianceException
    Address in mailbox given [1edfa93617920d] does not comply with RFC 2822, 3.6.2. .. any idea ?

    • @coderawesome
      @coderawesome  4 роки тому

      It's a swift mailer exception. Refer to this answer. stackoverflow.com/questions/1490042/swift-mailer-error-swift-rfccomplianceexception-on-an-email-that-actually-work

    • @firdausteo6566
      @firdausteo6566 4 роки тому

      @@coderawesome didnt work sir

    • @firdausteo6566
      @firdausteo6566 4 роки тому +3

      solve it by runnig
      php artisan config:cache
      php artisan config:clear

    • @myjinji558
      @myjinji558 3 роки тому

      @@coderawesome hey when i followed this. it shows me this. Call to undefined method Swift_Mime_Headers_MailboxHeader::getGrammar()
      how do I define a this method I'm sorry I'm new

  • @saranimanodya7670
    @saranimanodya7670 2 роки тому +1

    Target class [App\Http\Controllers\Auth\Request] does not exist.
    how to fix this

    • @coderawesome
      @coderawesome  10 місяців тому

      You might wanna manually import that class to the file.

  • @Spoutnik1707
    @Spoutnik1707 3 роки тому +1

    Even if you use a IDE who creates relations for you, you should mention adding each on each page at a good moment. This is sad for someone who trying to follow and then facing on multiple error msg.

    • @coderawesome
      @coderawesome  3 роки тому

      Yes agree with your point. For the later tuts I manually import those libraries.

  • @l-elf5399
    @l-elf5399 4 роки тому +1

    After I completed your tutorial step by step, I found that your validation in register form was broken. What can I do to solve this problem? Please tell me, thanks.

    • @coderawesome
      @coderawesome  4 роки тому

      Sorry I didn't realize that. You can write the validation rules using the Validator class inside the register method itself or create a separate Request file and use that in the method.

    • @morfawelvis1694
      @morfawelvis1694 4 роки тому +1

      just add this line inside the register method: $this->validator($request->all())->validate();

    • @sanzaylimbu9740
      @sanzaylimbu9740 4 роки тому

      @@morfawelvis1694 thanks man

  • @anirbanbanerjee572
    @anirbanbanerjee572 4 роки тому +1

    What is your env settings!!! I am getting mil in trapmail butnot on gmail

    • @coderawesome
      @coderawesome  4 роки тому

      MAIL_DRIVER=smtp
      MAIL_HOST=smtp.gmail.com
      MAIL_PORT=465
      MAIL_USERNAME=youremail@gmail.com
      MAIL_PASSWORD=emailpassword
      MAIL_ENCRYPTION=ssl

    • @coderawesome
      @coderawesome  4 роки тому

      These are the Mail credentials in the .env file. Make sure u enable "less secure app" in your Gmail account settings.
      In depth tutorial about sending emails: ua-cam.com/video/yEPK2LpbgDk/v-deo.html

    • @anirbanbanerjee572
      @anirbanbanerjee572 4 роки тому

      It is showing me sender address not found

    • @UnTalMiranda
      @UnTalMiranda 4 роки тому

      @@coderawesome Cual es la aplicaciòn menos segura, la de verificaciòn en 2 pasos

  • @uzayyolcusu-uzaylbaksyalnz9959
    @uzayyolcusu-uzaylbaksyalnz9959 3 роки тому +1

    Perfect!

  • @saifsharnkan6682
    @saifsharnkan6682 2 роки тому +1

    thank you

  • @kawtharmssiaidi5992
    @kawtharmssiaidi5992 4 роки тому +1

    how can u get ur localhost adress to put it in plzz

    • @coderawesome
      @coderawesome  4 роки тому

      You can put ur localhost address in in href just like the way u do with normal URLs

  • @nagaraju4378
    @nagaraju4378 4 роки тому +1

    Hi brother.
    When i click verification link in computer mail its working. But mail link not working when i click in gmail in mobile.plz give solution

  • @BrentDominic
    @BrentDominic 4 роки тому +1

    I am getting Address in mailbox given [] does not comply with RFC 2822, 3.6.2. error when I register. Help?

    • @coderawesome
      @coderawesome  4 роки тому

      Can you check if the email address is not null ? This normally happens when u enter a null value for that.

    • @BrentDominic
      @BrentDominic 4 роки тому

      @@coderawesome is this with the migration table? I have to set the email to not null?

    • @bigaishanurberdiyeva
      @bigaishanurberdiyeva 4 роки тому

      @@BrentDominic could u fix it? I have the same problem

    • @mrsam8728
      @mrsam8728 3 роки тому

      @@BrentDominic .env file setup

    • @myjinji558
      @myjinji558 3 роки тому

      @@mrsam8728 ive done this and used optimize and clear cache but still nothing happens do u know another way

  • @ramaljj
    @ramaljj 4 роки тому +1

    Swift_RfcComplianceException
    Address in mailbox given [54e38ff10a5f53] does not comply with RFC 2822, 3.6.2.
    Can you help ?

    • @coderawesome
      @coderawesome  4 роки тому +1

      This happens when the email address is null. add a dd() before calling the method and check if the correct values are taken from the ENV.

    • @ramaljj
      @ramaljj 4 роки тому +1

      @@coderawesome Hi, Thank you for your Reply. I fixed it (Just clear cache and run "php artisan serve".
      my next question is, I am building a Custom Login. so, How can I check is_verified = 1 or not.
      my exsiting code is,
      $credentials = $request->only('email', 'password');

      if (Auth::attempt($credentials)) {
      return redirect()->intended('home');

  • @tihamkhan7145
    @tihamkhan7145 4 роки тому +1

    Is that laravel 7 or 6? Plz tell

  • @jintuthomas6766
    @jintuthomas6766 3 роки тому +1

    really helpful ....

  • @balteebhaii5259
    @balteebhaii5259 Рік тому +1

    Sir is this work in laravel 9

    • @coderawesome
      @coderawesome  Рік тому +1

      It should work, but there might be easier ways of doing the same stuff in Laravel 9

    • @balteebhaii5259
      @balteebhaii5259 Рік тому

      @@coderawesome ok sir thanks for the guidance

  • @rahulchaudhary2595
    @rahulchaudhary2595 4 роки тому +1

    ErrorException
    Trying to get property 'email' of non-object

    • @coderawesome
      @coderawesome  4 роки тому

      This is very straightforward error. That 'email' key is missing.

    • @mohammadhallak9690
      @mohammadhallak9690 4 роки тому

      hey!..
      Did you solve it!

    • @mohammadhallak9690
      @mohammadhallak9690 4 роки тому

      @@coderawesome i have got the same Error!
      any Solve plz!

  • @mindcrazy9772
    @mindcrazy9772 4 роки тому +1

    Why don't you use verified_at

    • @coderawesome
      @coderawesome  4 роки тому

      We could've use that too. But that's more Laravel specific. My purpose was to cover the generic idea and the way of doing it. I'm really glad you suggested that. Thanks!

  • @_akash_sd
    @_akash_sd 4 роки тому +1

    Thanks man

    • @coderawesome
      @coderawesome  4 роки тому

      You're welcome! And thanks a lot for your feedback!

  • @motherskitchenbd
    @motherskitchenbd 4 роки тому +1

    NICE

  • @ashimrajbhandari3622
    @ashimrajbhandari3622 4 роки тому +1

    why to do all this? laravel 7 has built in email verification .

    • @coderawesome
      @coderawesome  4 роки тому

      Yes it has. This is for older versions and other mailing or verification purposes.

  • @ajitkumarchauhdary7885
    @ajitkumarchauhdary7885 4 роки тому +1

    i got this error when i register ..can you solve this problem anyone
    Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to smtp.gmail.com:2525 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    )

    • @coderawesome
      @coderawesome  4 роки тому

      Did you enable "less secure app" option in the Google account you used for the SMTP credentials ?

  • @newdaymoney1280
    @newdaymoney1280 4 роки тому +1

    thank sir

    • @coderawesome
      @coderawesome  4 роки тому

      You're welcome! And Thanks a lot for your feedback!

  • @helakajayakody2853
    @helakajayakody2853 4 роки тому

    what is the url link in the signup-email.blade.php. what should i add instead of that email

    • @coderawesome
      @coderawesome  4 роки тому

      If I understands correct, you're asking about the form action of the signup form right ? It's the same register route. No need to change that URL. We only override register method.

    • @helakajayakody2853
      @helakajayakody2853 4 роки тому +1

      @@coderawesome i'm asking about this Click Here!. what should i add instead of this href link. I couldn't figure it out

    • @coderawesome
      @coderawesome  4 роки тому

      @@helakajayakody2853 That's the email verification route. Replace that url with ur project's host (localhost or any domain) and route. And of course you need to include the verification hash too.

    • @helakajayakody2853
      @helakajayakody2853 4 роки тому +1

      @@coderawesome I COULDN'T FIND ANY ROUTE LIKE THAT IN YOUR PROJECT APART FROM /VERIFY IN THE WEB.PHP FILE

    • @coderawesome
      @coderawesome  4 роки тому

      @@helakajayakody2853 well, it's the same verify route I have put in the email. We have to hardcode that url because we cannot include the url by calling the route('route_name') funtion since the user click thay link outside our application

  • @038_abusalehmdnaim5
    @038_abusalehmdnaim5 3 роки тому

    Cannot send message without a sender address what should I do?

    • @coderawesome
      @coderawesome  3 роки тому

      Well, you should have a sender address.

    • @LaravelTechLogics
      @LaravelTechLogics 2 роки тому

      @@coderawesome can you tell where to put sender address ?

  • @bigrespect228
    @bigrespect228 3 роки тому +1

    38:59

  • @macthiem2432
    @macthiem2432 3 роки тому +1

    show .env file, please!

    • @coderawesome
      @coderawesome  3 роки тому

      I'm sorry about that. I'll update the description with the .env content.

  • @samueldelosreyes7598
    @samueldelosreyes7598 2 роки тому +1

    Hello Mr. coder aweso.me. I have a problem why is it my confirm password not working?

    • @coderawesome
      @coderawesome  10 місяців тому

      Can you mention if you're getting any errors ?

  • @livymarilyn509
    @livymarilyn509 2 роки тому +1

    Very functional bro to send campaign emails