Тёмный

Custom Authentication in Laravel|Username Authentication Laravel|Laravel Phone Number Authentication 

Code Band
Подписаться 12 тыс.
Просмотров 11 тыс.
50% 1

In this video, I'm gonna be showing you how to use username instead of email in Laravel Authentication. I will also show you Laravel Phone Number Authentication as well. We will refactor the default email based authentication views and controllers and make them suitable with username or phone number authentication such that we can register a new user by using username or phone number instead of email. Also, we can login using username instead of email. We will also change the default name that is shown in the header to username or phone number. We will tweak the users table migration file to include username or phone number field and also the set the validations for the new username field or phone number field along with making the username field or phone number field as fillable so that the mass assignment in Laravel can be done.
If you like the video, please hit the thumbs up button.
Subscribe | Code Band
Laravel Authentication Tutorial | Basics - • Laravel Authentication...
Laravel Authentication Docs : laravel.com/docs/7.x/authenti...
Github Guide : github.com/akjasim/cb_laravel...
Other videos in Code Band:
16 video Laravel Tutorial for Beginners : • Laravel Tutorial for B...
How to Deploy Laravel Project with Database on Heroku for Free : • How to Deploy Laravel ...
Instagram Automation using Python : • Instagram Automation u...
Top 5 Programming Languages to Learn in 2020 : • Top 5 Programming Lang...
:) You Can Find Me On:
My Website - jasim.tech/
Linkedin - / akjasim
Github - github.com/akjasim/
Facebook - / jasimakjasim
Twitter - / akjasim
Instagram - / jasim_ak

Опубликовано:

 

17 май 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@carlostecsihua8113
@carlostecsihua8113 3 года назад
Thank you very much, your video helped me, you earned a like, thanks for sharing your videos and helping new users, you are great.
@CodeBand
@CodeBand 3 года назад
Glad I could help..keep going❤️
@reinhardumbu6512
@reinhardumbu6512 3 года назад
Thank you for making this video 🙏🙏
@CodeBand
@CodeBand 3 года назад
Glad to hear that😊
@omidarabzadegan4031
@omidarabzadegan4031 2 года назад
Thank you, this is a wonderful tutarial
@CodeBand
@CodeBand 2 года назад
Welcome...
@learndaily3589
@learndaily3589 2 года назад
Thank you man , you save my time
@CodeBand
@CodeBand 2 года назад
Happy to help😊
@mahmudsulemansheikhwunnam3580
@mahmudsulemansheikhwunnam3580 3 года назад
perfect!!!!!!!!!!!!!!!!!!!!!!!!!
@CodeBand
@CodeBand 3 года назад
Thanks a lot😊
@AnuragSinhaVlogs
@AnuragSinhaVlogs 4 года назад
🔥🔥
@CodeBand
@CodeBand 4 года назад
Thanks brother and keep supporting... :)
@ZaferAst
@ZaferAst 2 года назад
Thanks 👍
@CodeBand
@CodeBand 2 года назад
Welcome 👍
@mfsdrawings8600
@mfsdrawings8600 4 года назад
Good 🤩
@CodeBand
@CodeBand 4 года назад
Thank you brother...keep supporting... :)
@hos7012
@hos7012 2 года назад
very good
@CodeBand
@CodeBand 2 года назад
Thanks
@VictorVillamizarc
@VictorVillamizarc 3 года назад
If I want to use phone_number instead username, Should I use this public function? phone_number() {return ''phone_number} ?
@CodeBand
@CodeBand 3 года назад
Wherever I mentioned username, just replace with phone_number.
@MahenderSingh
@MahenderSingh 2 года назад
how can be login , username and email both
@CodeBand
@CodeBand 2 года назад
www.itsolutionstuff.com/post/laravel-6-auth-login-with-username-or-email-tutorialexample.html
@jousts.pallath8276
@jousts.pallath8276 4 года назад
😊
@CodeBand
@CodeBand 4 года назад
Thanks and keep supporting... :)
@farhananwar4742
@farhananwar4742 3 года назад
Hi, I want to change my android app login from email to mobile. I am also using Laravel API. I have done everything what you have done in this tutorial but same answer when I login to android app (The user credentials are incorrect). Kindly help me.
@CodeBand
@CodeBand 3 года назад
If you've done the steps correctly, it should've worked perfectly fine...😊
@kaisarjamil2315
@kaisarjamil2315 3 года назад
is there any changes for laravel 8? Actually i followed your steps but can't
@CodeBand
@CodeBand 3 года назад
I'm not quite sure about it, you have to actually research on that😊
@ivena
@ivena 3 года назад
Can you explain how to use twilio with for verification code
@CodeBand
@CodeBand 3 года назад
www.twilio.com/docs/verify/quickstarts/php-laravel Check this one out...
@richarduraih3826
@richarduraih3826 3 года назад
how can someone log in with either the username or email
@CodeBand
@CodeBand 3 года назад
You can tweak the logic as you wish... Here's an article that might help you in this case : www.codecheef.org/article/laravel-auth-login-with-email-or-username-in-one-field
@howdyfaruk
@howdyfaruk 3 года назад
Great, But How Can I Login And Register For Only One Field(Username)
@CodeBand
@CodeBand 3 года назад
Actually, in the video, it's all about one field, either username or phone number or whatever it be... and I believe those login and reg. will also takes effect.
@aymanesadki1716
@aymanesadki1716 2 года назад
i have a question how i can save the password decrypt form in data base ? because in data base its look like that : $2y$10$jpft6LoxOW/B07bC41blXeAguxrjkC5g4rk.a8.QF8VZwuTMSDN7S ,but i want it to look like that : admin2021 , i already remove the hach method and make it like that 'password' => $data['password'], in the registercontroller but when i try to login he give me this error : hese credentials do not match our records.
@CodeBand
@CodeBand 2 года назад
It's not at all recommended to save raw passwords into DB.
@aymanesadki1716
@aymanesadki1716 2 года назад
@@CodeBand ok bro thanks , i have anather question when the user login he will go to page where he should complete a formulaire how i can do that ? i already create new table in the database for this formulaire and i put the controller for this page in the auth file should i create a model for this page like user.php what should i do ? sorry if this is long
@CodeBand
@CodeBand 2 года назад
Sorry for the late reply... Have u solved?
@aymanesadki1716
@aymanesadki1716 2 года назад
@@CodeBandit's ok , yeah I solved but I have another problem could u help me
Далее
React User Login and Authentication with Axios
31:37
Просмотров 548 тыс.
50 YouTubers Fight For $1,000,000
41:27
Просмотров 115 млн
04 - Authenticating Users in #laravel
13:15
Просмотров 43 тыс.
Laravel Breeze Login with Email , Name or Phone Number
17:41