Hello, friend, welcome back.
In a previous video here, we successfully created one of the factories and also you have created the
model that had been model will have be around the controller as admin controller.
Right.
And also we see all the data in our database table.
So that is our database.
I have played around the table as a means and that being sterilised all the data.
Right.
So now our next step for creating that multiple indication system will have to do.
We have to create one of the guards so you can to create that guard, then you have to do so.
Right now, we don't need this.
I remove everything.
I make it as a clean.
So if you want to create that the guards, then you have to do we have to go to that config, into the
config that is our ordered PSP.
So Lavall actually, by default, use this card.
OK, that is a wave dart and I want to do to create another card for our admin so you can see there
is a card and you can also add multiple cards into this card added.
So here I want to do and to create another one better.
I copy it and then I passed it so it'll be as the admin sahnoun to do and to create another card for
the admin and also into the driver.
So the driver will be at the station and there is a providers and providers will be our admins.
So that will be the admins.
And after that also we have to do we have to create one of the providers.
So that is actually our provider.
Senada don't appear to copy it and now to create another one.
So one of the things will we actually add into this guard adds a name, the provider name of the admins.
Right.
So also make sure you add that same name, that means your provider's name, so here it will be, as
the admins seem to decide means that is our.
I have already cleared out the model in our app and the models in the app.
And there are models and they have the admins know what to do and to use our this admin class.
So that will be our admin class.
Perfect.
And then there is our password.
So for the password by default, that is a user actually profile using the provider's actually the users
right now and want to add another one for our admins copied and pasted.
So it will be as the admins, admins and the providers and I have a look at the providers providers
is the admin thread.
So that is our admins and then our table will be the response a little bit the same.
An expert, the 60 and everything will be just like that same argument.
And then there is a password timeout.
So here I simply created another guard for our admin.
So that is our provider name.
I have declared that is all use.
It will be using our admin model.
So right now I simply save it.
And as I told you friend, that is one of the now when you run your PSP additional out list, I show
you again as a, b, r, d sun and then throughout and the leaves enter.
So into this Routley, they have the logging rights, so I as I told you before, so that is already
started logging.
That is actually the logging side of this logging here.
That is actually the responsible.
And that particular this file there is a Laravel for the fires to be controlled and authenticated station
controller.
So this dot indicates the station controller, this method is actually responsible for the logging.
Right.
So first of all, I want to find out this file.
So if you are to find out lie in windows, there's going to be and we're just going to be able to go
to Saajid authenticate, OK, authenticate, authenticate sation.
OK, authenticate station and then the controller.
So you can see that is the actual they have the two ones that copy one and that is a two factor authentication
and add another one as a vendor liable for fortify a circuit EDP controller and that is the authenticated
station controller.
So no one to do and to access it.
So if you open it, so that is the authenticated station controller and here they're protected by the
guards.
And also this guard is of the autonomous band.
And there is a Ford and there is a factory, PSP, everything is on here.
And there is also one of the middleware is the authenticated social media.
And here that is a constructor actor as a guard and there is a creator and that is the create method
is responsible for our this user logging, OK, that the default user logging.
So now I don't want to create another one for admin.
So it step by step everything will be very clear to you.
And also they have they stored under the store that is all on the logging pipe.
That means that call one of that.
You can see there is a call on the logging pipe on that matter so that the logging pipeline methode
and the pipeline method, that is our attempt authentication.
That is a paper that the people authentication session and there is a reduc to factory authenticate
and session and also provided another one at the Anshul logging is not that is that one.
All right.
So here actually it's a working with these and is destroy everything.
So if you want to check it, I show you like that is we are going to step through the constructor if
you want to check it with the lead that is added.
And here if you want to check it, that is which guard default actually is using.
So as I told you, by default, Laravel, using that Web card.
So if you look at these and the guard, OK, so I added the card.
So if you want to add this card in particular, that area, and after that, if you need to save all
and now I want to learn to log out from here.
And now, considering it's not by default, actually using that Web guard.
OK, so you consider using that way, but so no one to turn to use another guard for the admin.
So when it be as the admin starts logging, then it'll be used our at the guard as a way.
OK.
So right now I want to do that work so that now we don't need this.
We'll Google to save all of you know, refresh it.
So successfully now locked out successfully in a locked out.
So here we have to do is step by step, we have to create this part.
So here is actually using the interface.
So that is the interface name as a stateful guard.
So if you put you can see that is actually the stateful Gaspé.
If you go there and that is the interface and this interface are actually extended one of the guards.
So if you put that guard, you can see that is actually the main guard fence into the guard check you.
So we check it.
You should be checked.
That guest does not if we check that user and it should be outside of the functional ID, the validation,
so everything else will be managed by these guard.
So that is the appropriate location.
So if you put your kausar here, there is a level that the vendor Laravel the framework and if they
succeed, eliminate the contact and the order folder and then that is all Gardot VSP.
So that is actually the file is responsible for our guard.
OK, so I hope you can Willandra.
You have, you get some of the little idea what exactly that file texture.
So that is one of the interface actually using.
So that is interface name as a stateful guard interface.
And also one things you have to remember, like if you go to that our app that the app action there
is a forty five point one install the full authentication system which actually provided that is are
fortified and fortified.
That is our JD team also.
OK, so do the Fortify here.
If you go to that, I got another one actually created so into the providers.
If you go to that, our provider right now there is the providers, the providers that are out there.
You can see that directly 45 service providers seem to the 45 service providers that is on the register
methode.
So here, Fred, we have to do we have to admit it's a by default that's the responsible for our also
for getting that authentication.
That is the service providers to know what to do and to succeed.
That is another one.
If you can get the control fee and I can do it with the 45.
OK, forty service providers, so that is the Fortify service where you can see there is a 45 service
providers under one of the 45 service providers, but that is in our app or Vidas and there is a 45
service provider.
Right.
And there is another one as a vendor library full that the faithful that the SLC folder and there are
45 service providers that.
So now what to do and to access it.
Like if you open it so here if you open it.
So that is actually the file.
So here you can see that are on the register and the registered result, the ablate, the buying method
directly using that Biden method, one of the stateful guard and here that is actually fortified guard.
So now it's binding with another interface as a start, full guard interface.
So here that is the main file.
So now we have to do we have to actually update it.
We have to update our these providers.
And that is our fortified service.
OK.
So here we have to do we have to work.
So right now we don't need this a closet so that these are fortified and it's just full guards.
Also here we have to have included a lot of the time.
So that is actually the file.
So now in our fortified there is already there.
So here I want to do I want to update Orchester here and to get updated.
So if you want to update like these, I mean, this app and this app, I want to create another one
for our admin gartside.
So that is our app.
And when when our there have the two things, one will be our I have already chiral the controller if
you go to our controller.
So I have created that controller.
Sorry, that is a model.
So that is our EDP.
There is a controller or admin controller.
So that is that one controller here you have to load.
So now with this admin controller I want to do on that.
Did that with the admin controller and that is our class name in that class.
And this class will be two things here we have to do.
We have to add.
So here we have to add, these are authenticated session into the authenticators session to have the
two things you consider the app and to authenticate.
And also we need that data on to factory authenticated.
So that is two things will be needed.
And I copied it was an attempt to authenticate, so I copied.
So here it will be.
Also load out this class.
OK, so we load our diskless.
And also I want to do on to add another one.
I want to do want to add another one.
So make sure you add that semicolon in particular, that position.
And also there is another one as a two factorial deck, two factor authentication.
So it will be also another one of the I added as a reader to vector authenticated plus.
OK, so it'll be extended to all this.
So perfect.
So I simply add both of these.
That is our admin controller.
There is another one is that attempt to authenticate the class and the redacted factor authenticated
plus.
So here I add all the things in particular that area.
OK, so now I add it.
So after that we have to do we have to add that our need.
So that means here, here we have to do we have to add that need.
So here we we don't need this semicolon because I want to change it on here.
So make the clean and that is our needs and needs.
Each will be with our institutes controller that that is our one of the instead ful that is always difficult
guard.
So now this card I want to use it.
So that is actually our Garcelle needs these cards.
So here I don't want to use it.
So that will be the class.
That will be the class.
And after that and I want to add that give.
OK, so give and give it here on to the function.
I found that not the function or function will be, I name it, on the return and here I am with the
old guard.
There is all OK that is will be the old guard and under the old guard.
I want to learn to add as the guard name as the admin.
OK, so here I name it as admin and make sure you add the semicolon in particular that area.
So friend here I'm using that all authenticated.
I using that redact have to factor it out to get it.
Also we have to, we have to use both of these so better in our authenticated section here.
Consider the attempt to authenticate and I copied and here into the forty if I want to do an Dilaudid.
And also there is another one of the two factorial, Tinkerbell's I copied and now I want to to load
it.
OK, and also here I'm using another one.
I was using that stateful guard.
So here also we have to add that is Texel guards.
So that is actually location for these.
Tetsuya's here.
You can see there is a illuminator can control tracks and the OT and the structural guards.
So now I also want to learn to add it so I simply add everything perfect.
So that is one.
That is another one.
And that is our attempt to authenticate at the gate.
And also that is our admin controller.
Also, we have to do have to add this had been controller so better after this that will be used sorry,
that will be used and then in our app into the app and then the EDP and then the controllers.
That means the controllers and the controllers I have created one of the admin controllers that will
be as admin controller.
So make sure you added because of all here, I have used everything.
So make sure you had everything on here.
So now I want to do I want to create and the guards I have to create one of the guards into these Tydfil
guards if you go to that stateful guard.
So test the guards.
I want to do want to create for our admin so bad I copy everything and now you know our apps into the
app area.
I don't want to create one of the folder and I just name it as a guard.
OK, name it as a guard.
Seem to the guards folder and would want to create the file I create on the file now because I save
as and I just name it and I just named it the admin admin and then State Guard and VSP.
So they step up one of the name.
I want to add the clarification with just like that saying before that is actually stateful guards are
not bad for Kayenta created for admin.
So for the reasons here I name it as the administrative elgart, OK, now I save it.
So everything I want to do and to copy from our State Guard, that means here, if you go to that instead
guards you can see provided that appropriate file location.
So that is our appropriate file location.
So from here you can I don't want to copy everything.
And now your admin Dabney's for the admin I have created and that is guard and here I simply like a
friend.
So here that is actually the process.
You see step by step we have to floor a multiple step.
So I will show you everything with the live example.
So no, I don't want to continue this process.
You know, next video, I will show how you can create multiple authentication in step by step.
So thanks for watching and I'll see you in the next video.