Amazing video, you have really explained all steps very well. I am getting an error where you declare $credentionals for login ( $credentials = $request->only(keys:'email', 'password'); ). As soon when I pass the second key 'password' , visual coder underlines it red as an error. Error says " Cannot use positional argument after name argument" PHP(PHP2423) . I have installed Laravel 10.
I fixed the error using Chat GPT. We can pass the values using array without using the word "key". So the line $credentials = $request->only(keys:'email', 'password'); becomes $credentials = $request->only(['email','password']);
Hello can you help me out? when i try to login with a registered account it keeps saying "the email field is required" and "the password field is required"
Sir please help me to create a route only for registered users... No authorised user can access that route 😅😂 I have been searching for that last 2 weeks on UA-cam
You have made some mistake with the model area. Check if you are using the proper model. On the top you can see app\http\...\... In this area the user class should be a model not a controller. Watch the video once more if you don't get it.
you have to import correct function from correct class, if you want you can also download the source code, or just watch the video once more everything is explained. registration() is a function in the controller AuthManager
@@CodesEasy thanks I rectified the mistake now another mistake has arisen ie BadMethodCallExpection it is pointing the $request->validate in the registration post and it is saying that validateRequiredmail does not exist
@@CodesEasy still have an error with the $user=User::create($data) and the registrations is always failed. The model also generated public static stuff, did i forget anything before doing the project?
thanks for the vid, this is working, now i aded a usertype to my table and i updated the login function to this: public function login() { if (Auth::check()) { $user = Auth::user(); $userType = $user->usertype; if ($userType === 'admin') { $redirectPath = route('admin'); } else { $redirectPath = route('user'); } return redirect($redirectPath); } else { return view('components.forms.loginForm'); // Weergave inlogformulier } } but if i login with a admin usertype i stil get redirected to the normal homepage, any idea what is wrong, is the code wrong, did i forget anything? thanks
In 24:00 when i run the site and inserting inputs in registration form after submitting it shows me 419 page expired but i have @csrf in both registration and login file too! @CodesEasy
Try refreshing the page properly and check. Make sure you are having an input field in the name _token, use view source option to check after loading the page
Hi, I am trying to do custom login with using password only to login by refering to your video, however I having issue at the $credentials and (Auth:attempt($credentials)) part while others able to run. I assume the database somehow unable to check my password or maybe others issue which I don't really know. So, may I ask do u had any idea what causing this? I am sorry about this 🥲
The issue is when I try to login, the system keep sending me error message eventhough I used the correct password. I also tried multiple times and it keep sending me error anyways
INFO Preparing database. Creating migration table ....................................................................................................... 38ms DONE INFO Running migrations. 2014_10_12_000000_create_users_table ........................................................................................... 57ms DONE 2014_10_12_100000_create_password_reset_tokens_table ........................................................................... 40ms DONE 2019_08_19_000000_create_failed_jobs_table ..................................................................................... 51ms DONE 2019_12_14_000001_create_personal_access_tokens_table .......................................................................... 41ms DONE PS C:\xampp\htdocs\login-page> php artisan migrate i have a greate a table in my terminal but in phpmyadmin doesn't pop out anything about the database which has create before
I love south indian programming tutorials, very clear and understandable.
Happy that the video helped you
Great Tutorial. I love the gentle pace and clear explanation
Glad it was helpful!
Thanks for the detailed tutorial, i understood this framework really well! Keep up the good work brada!
Glad it helped!
Как же этот индус спасает меня перед экзаменом.❤❤❤
👍
Thank you so much for this amazing tutorial! Your explanations are clear, concise, and easy to follow, making it perfect for beginners like me
Excellent tutorial. Thanks.
Glad it was helpful!
@@CodesEasy Have you done a tutorial on middleware in Laravel 11+ ?
Thankyou for the tutorial!
Make more projects as a beginers could practice.
Sure
It's an amazing lac=ravel tutorial! Clear and easy to understand!
Glad it was helpful!
Nice work bro
Happy that the video helped you
Amazing video. Would love to see you making a Laravel course.
Coming soon!
perfect explanation with peace video. I was deeply dragged into your videos while learning. Thank You for great video
Happy that the video helped you
Man you are the best teacher
Amazing tutorial! Thank you so much
Glad it was helpful!
god bless you. thank you so much. this is so helpful.
Glad it was helpful!
Thank you a lot! I got everything and have done my work properly :3
Thank you so much sirr❤
Most welcome
Thank you so much , this is so helpful
Happy that you liked it
you are great i m your student
Happy you like the video
Feel free to ask all your doubts here
We will respond to all your comments
sir I follow all codes but the when I register, they do not go to login page.
Hi..How to handle routes for multiuser/multirole routes? like if we have admin, regular user, encoder etc.
Can you do a video to give difference access to difference user types.
Awesome 🎉
🥳
after type php artisan serve
If you are doing it on a local machine you will get a link with the localhost address.
@@CodesEasy its working now after redo another php artisan serve command again
please create more tutorials on laravel
Yes, a complete food delivery app coming soon using Laravel and Android
Why don't i have the Blueprint.php file when i press CTRL + mouse on the time stamp?
You might have missed some thing. Watch the video again
Thank you
You're welcome
what's your IDE ? looks so nice
PHPStorm
awesome stuff
Happy that the video helped you
Thanks
Welcome
What version of laravel are you using sir?
Latest version at the time of making that video. Not sure exactly which. Most probably 10
gue dukung terus bang
Happy to hear that
Are you using the android studio software?
Its PHPStorm
Can i do the registration and login in the same page ?
Like 2 forms on the same page ?
Amazing video, you have really explained all steps very well. I am getting an error where you declare $credentionals for login ( $credentials = $request->only(keys:'email', 'password'); ). As soon when I pass the second key 'password' , visual coder underlines it red as an error. Error says " Cannot use positional argument after name argument" PHP(PHP2423) . I have installed Laravel 10.
Visual studio code might not be able to understand it. I would recommend PHPStorm for php related stuffs
I fixed the error using Chat GPT. We can pass the values using array without using the word "key". So the line
$credentials = $request->only(keys:'email', 'password'); becomes
$credentials = $request->only(['email','password']);
@@CodesEasy please also create video to teach email verification
Hello can you help me out? when i try to login with a registered account it keeps saying "the email field is required" and "the password field is required"
You have made mistakes with the code or in the database table column
My larvel installer 4.5 can we do auth there.any updradation required
4.5 is an old one. Update it to the latest version. And also use the latest Laravel version as well.
best
Happy that you find the video helpful
did you use default database?
MySQL
@@CodesEasy sir can you do the rest password?
@CodesEasy create a video on this topic using Laravel 10.
The video will be almost the same only. Go ahead and do this on Laravel 10 also.
@@CodesEasy I tried but auth::attempt not working.
I have a small problem Method 'create' not found in \App\Models\User and i don't know what i should do
If it's error showing in PHPStorm or the ide just ignore it. It's because the ide can't recognise it properly.
how to fix InvalidArgumentException
PHP 8.1.4
10.3.2
View [folder.layout] not found.
You have not created the layout properly. Check that part in the video and check your code. You most problem have made mistake there.
Why is it folder.layout i think you just have to make it layout removing the folder
Thank's
i followed the steps performed in your video but i am getting error "the get method is not supported for this route"
Check the route, check if you have added wrong type, get and post. Make sure it's correct
@@CodesEasy yeah i performed mistake on the login page while declaring route
Bro i have the login and register code but not know that how to connect this code and that code
Please answer me
Humm, you have to learn the basics. You could join our online classes if you are interested.
Sir please help me to create a route only for registered users...
No authorised user can access that route 😅😂
I have been searching for that last 2 weeks on UA-cam
just add a middleware('auth')
Thank you bro
Welcome
sir, 56:57 here after registration page i cannot go to the login page. it appear Class "App\Http\Controllers\User" not found
You have made some mistake with the model area. Check if you are using the proper model. On the top you can see app\http\...\... In this area the user class should be a model not a controller.
Watch the video once more if you don't get it.
@@CodesEasy plz elaborate this one, I am facing the similar issue even after doing everything according to the video.
Bro at 56:52 its giving me Bad Method Call Did you mean App\Http\Controllers\AuthManager::registration() ? Please help.
you have to import correct function from correct class, if you want you can also download the source code, or just watch the video once more everything is explained.
registration() is a function in the controller AuthManager
Sir how about the Length of the password? for the security we need use strong password
Ofcourse you can specify the length in the validation part
With laravel 11+ you can use php inbuilt hash? $data['password'] = password_hash($request->password, PASSWORD_DEFAULT); for the registration
If you want to you Laravel auth, use their own classes. Hash::make()
Why does it says Page Expired 419 on mine??
Make sure you added csrf token option
@@CodesEasy I did both csrf tokens on registration & login, probably from the routing or controller,model or migration table..
Csrf missing
57:10 here I have got perfectly after this ie the registration part is not going to login part where did I got wrong
Check the if condition check if registration is successful or not. You can also check out the source code in the description
@@CodesEasy thanks I rectified the mistake now another mistake has arisen ie BadMethodCallExpection it is pointing the $request->validate in the registration post and it is saying that validateRequiredmail does not exist
Hello please i have a problem can you help me?
Sure
Route [login.post] not defined. 😐
check your web.php file, watch the video its shown in the video in detail
use Inverted comma
when i press login i stay in the same page
That means login is not successful. Check the response try printing it and check
login will not redirect to home page
What to do after this?
You can continue building the app. This is login and registration
why is it needed some mongodb stuff in my ide?
No, in this video mysql is been used
@@CodesEasy still have an error with the $user=User::create($data) and the registrations is always failed. The model also generated public static stuff, did i forget anything before doing the project?
100k banggg bwt depoooo
👍
if you acess / without loggin in it will not redirect you to /login page
Yes it will. Add the route inside a middleware auth
yes sir already did it@@CodesEasy
Auth is not working
Check for errors. Watch the video carefully
thanks for the vid, this is working, now i aded a usertype to my table and i updated the login function to this:
public function login()
{
if (Auth::check()) {
$user = Auth::user();
$userType = $user->usertype;
if ($userType === 'admin') {
$redirectPath = route('admin');
} else {
$redirectPath = route('user');
}
return redirect($redirectPath);
} else {
return view('components.forms.loginForm'); // Weergave inlogformulier
}
}
but if i login with a admin usertype i stil get redirected to the normal homepage, any idea what is wrong, is the code wrong, did i forget anything? thanks
Check your routes
How to add my own css and not bootstrap
Dont add Bootstrap. Instead add yours CSS in a file and place that css in public folder. The user link tag to add that to the page
@@CodesEasy I see a css folder in the resources folder. But nothing in the public folder. Should I just put it in the public folder?
Just create a folder or file according to your wish in side the public folder
coba ganti pola bang
Sure
leee tamma kannada valaga madrleee
We could only understand kannada in a limited amount:)
Brother,I have just started and having issues in web.php.It shows require __DIR__.'/auth.php'; so what to do?
bro i am facing problem in require DIR /auth.php
👍
In 24:00 when i run the site and inserting inputs in registration form after submitting it shows me 419 page expired but i have @csrf in both registration and login file too! @CodesEasy
Try refreshing the page properly and check. Make sure you are having an input field in the name _token, use view source option to check after loading the page
Hi, I am trying to do custom login with using password only to login by refering to your video, however I having issue at the $credentials and (Auth:attempt($credentials)) part while others able to run. I assume the database somehow unable to check my password or maybe others issue which I don't really know. So, may I ask do u had any idea what causing this? I am sorry about this 🥲
Explain the issue so we could help
The issue is when I try to login, the system keep sending me error message eventhough I used the correct password. I also tried multiple times and it keep sending me error anyways
@@shiroxcoke713 same issue
same problem here .have you got any solution?
INFO Preparing database.
Creating migration table ....................................................................................................... 38ms DONE
INFO Running migrations.
2014_10_12_000000_create_users_table ........................................................................................... 57ms DONE
2014_10_12_100000_create_password_reset_tokens_table ........................................................................... 40ms DONE
2019_08_19_000000_create_failed_jobs_table ..................................................................................... 51ms DONE
2019_12_14_000001_create_personal_access_tokens_table .......................................................................... 41ms DONE
PS C:\xampp\htdocs\login-page> php artisan migrate
i have a greate a table in my terminal but in phpmyadmin doesn't pop out anything about the database which has create before
Check if you are using any other MySQL setup. Check your MySQL details in .env file
First create a database in phpmyadmin, then run the command