3 Custom User Registration | Laravel Splade Tutorial Employees Management Project

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign [Applause] welcome in this video let's work with the user registration so if I go here but the register we have name email password and the confirmation confirm password the default one but because we have changed the user migration so hearing the users we have username first name last name and the email and so on so we need to add here the username first name and the last name so let's open the vs code and I'm going to open the register user controller and here we have the request validate for name now let's change this let's say the user name like this and I'm going to save for the username also is going to be unique and just let's copy this and paste it here okay now I'm going to copy and paste for the first name and the last name so let's say here first name like this yeah just remove the unique because it's not going to be unique the first name Also let's copy and paste for the last name this one and let's remove now this so we have the username first name last name email and the password then we have the user here and say user create also the same we need to do here so let's say username to be request username and just copy and paste this for the first name first underscore name and the last name so the last underscore name the same here so let's copy and paste also this one and now we are okay so then we send the event new registered user passing here the user and then logging the user and redirect to the home page but good now let's open the register blade so register blade hit enter and we have the X split input for the name and we need to change that so first this is going to be for the username type text name is going to be username and also here we are going to save user name like this and let's copy and paste it's not going to be out of focus so this one and also this one removed and then the ID is going to be first name and also here first name like this and last name the last name and last name and as you can see here we have the X split input because we have installed the split with the breeze we have some components here okay now let's navigate and see we have the username and yeah we need to change visual so username here is going to be first name and the last name here and let's save and let's come here yeah okay now let's go because we need to add also the let's open the user model and we need the other username first name and last name on the protected billable so instead of just name we can say username and let's copy and paste this and change the B first underscore name for this one and for this is going to be in the last underscore name and I think now we are okay let's save and let's close this let's close this also and let's close this and let's try now the register from here hit refresh just for last time and say username let's say Joan though and for the first name is going to be John last name let's say though uh emails is going to be johndo.com and for the password I'm going to add password here just confirm the password and say register and now we are okay so we are logged in redirected the blank dashboard just here as you can see we don't see the name because we have changed so for that we need to open the navigation blade and we can see we have the of the user name as you can see here but in setup name we can say username like this and let's save and let's come here now we have the John Doe everything okay we can log out we can go and log in so with email John doe.com add the password hit login and we are okay okay friends that's it about this video work with the user so we added all the fields we need and also we changed here the username okay friends I hope you enjoy if you like don't forget to like the video subscribe to my channel and see you in the next one all the best thank you very much
Info
Channel: Code With Tony
Views: 809
Rating: undefined out of 5
Keywords: laravel, vuejs, livewire, laravel 8, laravel 9, laravel crud, laravel 8 tutorial, laravel 9 tutorial, laravel with splade, laravel vue and splade, laravel full tutorial, laravel splade project tutorial, laravel emplayees management tutorial, laravel splade employees management tutorial, Laravel employees project, laravel employees management
Id: lA5CsmoD6-4
Channel Id: undefined
Length: 6min 41sec (401 seconds)
Published: Tue Jun 06 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.