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
why is that when i clicked submit it turns back to the register page but hasn`t created a new user ?
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
The method has been set but i just cant route the register form to the store function
@@tranbang4703 my app is not redirecting either, have you found a solution?
@@tranbang4703 did you reslove the issue i am also facing same issue
@@tranbang4703 hi, did u solve it?
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
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;
Hey I compared my Code with yours but I alway get this error: Class "http\Client\Curl\User" not found
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
Hi,
Can you please tell what database manager you have been using.
Hi, you can just use the CMD to access to the DB (MySQL), he is just checking records.
@@golinoswago3239 Yes I know that. I am using DBeaver as my DB manager, So for an alternative I have asked that.
@@CastroUbuntu I'm using HeidiSQL, but I think you can find better options 👍
I'm using Table plus
I personally stick to the good old Workbench :D
At what point do you call the 'store' method tho? I've been trying to figure out how it worked lol
nvm, after a while, i got it.
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
same
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.