Laravel 9 Login And Registration | laravel 9 authentication | laravel for beginners

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] and welcome to tech tool india today i am going to explain you how you can make login and registration in laravel 9. if you want to know how you can install level 9 you can get a link in the description or you can click on the i button to see the installation step so without wasting any time let's get started if you're new to the channel please do subscribe our channel to get the latest update on laravel so let's get started to make login and registration in laravel 9 i'm going to use laravel ui package which will serve you the login and registration module with bootstrap vue.js or react.js you can use any one of them based on your requirement so let's see how we can install this so this is a level ui github repository i'm going to link this repository into description you can find out from there so if you go to the installation steps these steps are very simple to install level ui package you need to run this composer command let's copy this i'm inside the first level project i'm if you see we have level 9 installed and we don't have any login and registration as of now so let's go into a code install this lively ui package via composer i have just pasted the laravel ui command as you see it has installed the laravel ui via composure and it's completed let's see what are the next step if you want to generate basic scaffolding so you can run these command php artisan ui and based on what you want like bootstrap view or react you can use any one of this or as we are generating the login and registration scaffolding we will use php artisan ui bootstrap with auth so let's get copy this command and run this command as you see bootstrap's scaffolding is installed we need to run npm install and npm run dev let's run the npm install here it is going to take a time and install the npm dependency for this you can read all the documentation i will link out this repository in the description you can check it out from there let's run npm run dev it's successful and it generated two files inside a public folder one is jsab.js another is css app.css so if i go ahead and refresh this page now you can see on the top right corner we have login we have register so we have login and register here let's see what has changed inside database and views if you go inside views now you can see this auth folder inside this auth folder you see all the authentication uis like login register verify and password confirm password email and then reset so all these are generated through this level ui package if i just list down the routes available if you run this command php addition root list now you can see we have login log out password confirm password email password reset and register so these all login and registration routes are generated through level ui package let's set up the database and run the migrations if you see here i need to create a database let's open a database and we need to create a new database here new and we will use our laravel first line as name of the database let's create it so right now we don't have any table go into the project and run our migration by php artisan and migrate as you run the migration you'll see this users table password reset table fail jobs in the personal access token so these are the tables which is migrated let's go into database and see you see we have now users table available migration table password reset and personal access token and the failed jobs these are the default migration which laravel comes up with if you want to see the migration you can go to the database inside a migration folder you will find all the migrations written there so let's go to our browser and see if we can able to register this i'm entering test data here let's enter the password yep you can see i am able to log in if i click on here as a logout i i'm able to log out if i just you know try to access with another password it's giving me the error if i use the same password so it i'm able to login so it's very easy to make login and registration on the level 9. in the next video i am going to explain how you can manage to change your password after login i hope this is informative for you if you find this video helpful for you please do subscribe our channel please do like this video and if you have any issue regarding login and registration in laravel 9 please do comment down with this video i will try to answer all of your queries in the comment till the next video keep watching keep learning thank you for watching [Music] you
Info
Channel: TechTool India
Views: 32,987
Rating: undefined out of 5
Keywords: laravel login and registration, laravel, laravel 8, laravel login, laravel authentication, laravel tutorial, laravel 9, laravel registration, laravel login tutorial, laravel login and registration authentication, laravel login system, laravel 9 login and registration, laravel 9 authentication, laravel auth, laravel 9 user login and registration, laravel 9 login and registration example, custom login and registration in laravel 9, laravel 9 multi auth
Id: ul3t3YpTXM8
Channel Id: undefined
Length: 7min 0sec (420 seconds)
Published: Sat Feb 26 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.