How to code registration | Laravel 10 Tutorial #20

Поделиться
HTML-код
  • Опубликовано: 23 июл 2023
  • Laravel 10 authentication Tutorial
    On this episode we cover how to build a registration system using laravel 10. We cover how to do the validation, store the users and also how to securely hash the users password.
    Html template mentioned :
    github.com/CodingFlick/bootst...
    Playlist of Laravel 10 Tutorial Course :
    • Laravel 10 Beginners C...
    What is Laravel :
    Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
    en.wikipedia.org/wiki/Laravel
    If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
    If you have any questions or problems please leave a comment.
    Laravel Blade
    Laravel crash course
    Laravel Database and crud tutorial
    Laravel Login and Authentication
    Laravel registration

Комментарии • 22

  • @tranbang4703
    @tranbang4703 8 месяцев назад +6

    why is that when i clicked submit it turns back to the register page but hasn`t created a new user ?

    • @yelocode
      @yelocode  8 месяцев назад

      Thanks for watching.
      I could be due to method="post". Could you check if the method is set?
      I also have the full code on github you could compare your code with it to find the exact issue.
      github.com/yelocode/ideas/commit/39bc961392934b2a41b9458e91fd9322d1459a58#diff-f7be0e4dc9bfa1163f7bd92d5aaea120ac439052cfb7135479e728609ba02e24

    • @tranbang4703
      @tranbang4703 8 месяцев назад

      The method has been set but i just cant route the register form to the store function

    • @angelolorensi5470
      @angelolorensi5470 6 месяцев назад

      @@tranbang4703 my app is not redirecting either, have you found a solution?

    • @oweb9067
      @oweb9067 2 месяца назад

      @@tranbang4703 did you reslove the issue i am also facing same issue

    • @daniloospina5956
      @daniloospina5956 Месяц назад

      @@tranbang4703 hi, did u solve it?

  • @san-4179
    @san-4179 6 месяцев назад +2

    sorry im new to this, but ive tried to copy all of your codes in this vid, yet ive got an error which is it says Class "App\Http\Controllers\User" not found and it marked the error is here, $user = User::create( ...i have no idea how to fix it

    • @yelocode
      @yelocode  6 месяцев назад +2

      This error usually means you have not imported the User class. Please add the following like to top of your controller file next to other imports
      use App\Models\User;

  • @SiFu_Max
    @SiFu_Max 6 месяцев назад +1

    Hey I compared my Code with yours but I alway get this error: Class "http\Client\Curl\User" not found

    • @yelocode
      @yelocode  6 месяцев назад +1

      From the error message it seems you have the wrong User class imported, try changing the import from http\Client\Curl\User;
      to use App\Models\User;
      Hopefully this will fix the issue

  • @CastroUbuntu
    @CastroUbuntu 2 месяца назад +1

    Hi,
    Can you please tell what database manager you have been using.

    • @golinoswago3239
      @golinoswago3239 2 месяца назад

      Hi, you can just use the CMD to access to the DB (MySQL), he is just checking records.

    • @CastroUbuntu
      @CastroUbuntu 2 месяца назад

      @@golinoswago3239 Yes I know that. I am using DBeaver as my DB manager, So for an alternative I have asked that.

    • @golinoswago3239
      @golinoswago3239 2 месяца назад

      @@CastroUbuntu I'm using HeidiSQL, but I think you can find better options 👍

    • @yelocode
      @yelocode  2 месяца назад +1

      I'm using Table plus

    • @user-sn4nb3ei8p
      @user-sn4nb3ei8p 12 дней назад

      I personally stick to the good old Workbench :D

  • @drolaticdemiurge1137
    @drolaticdemiurge1137 13 дней назад

    At what point do you call the 'store' method tho? I've been trying to figure out how it worked lol

  • @daniloospina5956
    @daniloospina5956 Месяц назад

    when i click submit it redirects me to register page whitout create the user, actually the post and get method from web.php and the form are okay, so idk what is that

    • @mrrazor8727
      @mrrazor8727 Месяц назад

      same

    • @drolaticdemiurge1137
      @drolaticdemiurge1137 13 дней назад

      its probably because the correct way of doing password confirmation is adding '_confirmation' at the end of the field's name and not '-confirmation'.
      I figured that out after trying adding error messages after the fields (@error('password'){{ $message }}@enderror) and it saying they didn't match after i certified multiple times they did. Went to look for the correct way of confirmation, and found the answer.