Hello, friend.
Welcome back.
You know, previous video we gave some of the files from our Laravel, that is from the level that is
our Fandor, the DRC actions.
And here I take to this interface as a the attempt to authenticate and also another one as a read to
factory authenticate.
Right.
So here I take both of these and I take that things in our main one that is of our action that are fortify.
And here I updated that, but that means I updated that namespace and that is a class name.
So on right now, I want to do I want to create our media.
So here into the router, I have already created some Domitilla you can see I name it Domitilla as the
admin.
So that is that being the old guard.
So right now to do I want to create it's kind of created by trying to replace a new one.
Like if you go to that Middler, that is our SCDP, there is a Middler and intermediate redirect authenticated
modular.
So that is the redirect authenticated Middler.
You can see for now it's actually showing that it's on this card and it is authenticated card that we
check when it be checked and it it'll be returned direct to the that is real service provider.
And with this our service provider will be returned to the home.
OK, so here it will be rejected to the homes.
That means if you go to that, our providers, that means the providers.
If you go to that, our service providers and you can see that the work on a stand as a home there is
a slash dashboard.
Right.
So now, first of all, I want to do I want to actually change it.
So here I want to do I want to create another like that is actually the power file.
And here, if you go to our middleware, first of all, you have to understand that how that functionality
actually work.
You can see that is actually one of the functions as a redirect.
So that is the we to see the requirement to pass it.
That means when this user will be locked in, then it should be redirect to the dashboard.
That means that means that vote rather than when you lock in with the user automatically response to
the dashboard.
Right.
Send them here.
If you go to that were brought into the way around here, you can see snow passing to the dashboard.
So first of all, I want to update our providers and the providers.
If you go to that, our service providers here, I want to create one of the function if you want to
create it.
So make it as a one of the public, instead function as a public and then static, OK, that will be
the public static function.
So I want to create public static function for the redirect redirect.
So for the redirect to redirect to will be to our guard.
So I want to do and to make it as a guard, OK, I want to make it as a guard.
So here in the dysfunctionally that is functionality I want to do and redirect to our dashboard, that
means return with our discardable.
That means whatever the guards want us to be as a user, we get to the user dashboard.
When we be the admin guard, then it's a redirect to the admin dashboard.
Right.
So here, I want to do that.
So the return with the card and then I want to learn to create it.
So here with this concrete, I want to pass it to the slash and the dashboard.
OK, that will be passed to our dashboard.
I hope you can understand about it.
So first of all, here I updated that, our redirect to our discussion.
And now I want to do want to update our media.
That means if you go to our Minneola, there is a redirect authenticate Maryla.
So before that is actually passing in or around the Sedrick, and it would redirect that redirect to
the cloud service provider as a whole.
So no one to I have already added has a guard.
Right.
That means here I have already rid of the guard as a dashboard.
So now this dashboard I want to use.
So now I want to do want to copy it and now redirect that Mililani directly if authenticated.
So here I am to do and pass it on here.
OK, efferent.
So here that's all.
So here I added and now we have to also you have to add another one for our admin rights into the app,
the web.
I have already declared the web and that is another one is the admin.
So now to than to create at this Middler that is admin and that is our guard name.
So now on to do better.
That is actually our provider to the middle.
Right.
So now go to our main file area.
Mehtar here if you go to our main app and that is our EDP, the Domitilla.
So right now that is our redirect if authenticate.
So this file I want to do and to copy it.
And here I passed it.
I passed it.
So that is the file.
So no one to turn to me.
Name it, let me rename it.
I name it as will be as the admin admin and then redirect if authenticate.
So now I create a new one, so that will be as the admin and the redirect in the authenticate.
So here you can see that this one.
So now this one will be just like that same.
This one will be just like the same as our out.
So but, you know, our that is actually the regenerative condition.
I copy everything, OK?
I copy everything from this position.
I copy everything.
And now here let me add mean authenticate here.
I passed it OK.
I simply passed it.
Sorry.
So I copied, I copied.
And now here I selected closet and here I posted.
Perfect.
So now here we have to do we have to first of all when you create an image I am directly create this
model rather than you can also create this data.
Middler with using that piece Partizan so that no one is totally fine with me.
So when you create any material, first of all, you have to decorate the it.
So if you go to that kernel into the kernel here, you have to register.
OK.
So in that position you have to register.
But I copy it and now I pasted.
So here I name it as a middle name as the admin right now and going to change that name into the kernel.
It will be as the admin name.
It is admin and into the admin.
I have created what the app is TDP Middler Naft SCDP Maryla into the middle.
I have created as admin so that means I just copy this file name.
OK, I copy this file name and with the Kamale, so that will be our admin if authenticated immediately.
So make sure you add it.
And also I have created that admin Miller.
You can see it's now showing us a class name of the previous one, so that will be as the admin.
So that will be the admin redirect.
If you have dedicated so perfect there is a Middler and also so we that to our dashboard.
OK.
No, I just think of the save right now.
I don't need this.
I simply closed everything from here.
OK, close it, close it, close it.
And the admin controller.
So now into this admin controller.
That is a blocking and the door create and the locking view in the locking view of the response.
So now, first of all, I want to check this response if you go here.
So that is our response.
Perfect.
So here we don't need to do anything and that is all installed.
So that is all restore data into the store.
That is locking the first if you go see the logging request.
So that is our rules.
Right.
So that is a blocking request.
There is a forty five rule here.
Everything is great.
So you don't need to do anything.
And also if you go to the locking the is another one in our SLC into the Associated Press box, locking
this if you go there.
So here we have to do we have to update.
OK.
So here we have the update that the redirect in there that is intended, this config as it fortify home
support, the resource is actually the key to the home base.
OK.
So here also you have to updated this file.
So that is Phylis is on here.
If you put your kausar, you can see that Lavander that Laravel folder for the file folder, SAAC,
SCDP response and then the logging response BHB.
So this is the file actually responsible for REDACTED at this point is the user will be successfully
locked in, then it will be returned to the fortify hole.
So that means when this user by default user is logging, that means that the user is logging, then
automatically it will be written redirect to particular this fortified homepage.
OK, so now I want to do want to add the same file.
I want to add the same file for our admin.
So if you want to do that, work into the EDP folder, into this folder here to the new folder.
And I just need other responses.
OK, name one of the folder name as a response.
As soon as the folder area, I want to create one of the final round of the same filename I copied and
now here into the responses folder and you create the new file as I save as a noun.
Name it as a logging response.
Yes.
OK, now let's not be so nice.
Maybe not be so.
That will be one of the file.
And here I want to do our default one that is our default, that one for our web.
That means for our users right now.
I copy everything, I copy everything.
And now in our locking here I put it.
So first of all, we have to do we have to update that name is based on our namespace is in our app.
So that is our app into the app.
Then there's TDP, right.
That is our EDP and into this EDP.
I have the folder as the responses.
So that is our responses.
Right.
Make sure spelling is correct.
So that is.
Our responses respond to Spartech, so here ablated, our name is space right now for logging, so that
is our default on the following actually that divide homes and now on to do and to pass it to the outer
dashboard darkness here.
I want to do and to pass it right.
So that is our for the admin.
So for admin that the policy to be done to the admin dashboard and I copy it.
So here I want to do the indent here and then to pass it.
So I simply cut it and here I pass.
It should be passed to our admin and the dashboard area.
So that's all you have to do.
OK, now let's check this out.
If we get any at all, step by step, we'll solve it, OK?
So now here I updated that part of the save, so I hope you will understand about every step by step
process.
So that is a step by step process.
You have to actually follow, OK, for creating that multi authentication system.
So now let's check this out.
Everything is perfectly working on.
Not so here.
First of all, I want to go to our home, that home almost perfectly loaded waterlogging.
So there is a lot so for the user, I have already created one on one, and that is the admin as the
admin at the original dot com and the password is the password.
So now, first of all, I'm going to login with the user.
So for the user I have already named as a user at the way Gmail dot com.
So that is our default on.
Right.
So now first of all and check it our default one, that means that the user that will dot com and password
you do me one, two, three, four, five.
And now if you can get a logging.
So now showing the arrow as a fortify service providers, those apps are not found.
So don't worry, we will solve it.
So that is in our fortified providers problem.
That means 45 service providers to go to our forty five service providers.
So that is to the providers, the providers and the for the service providers here.
I have used that all throughout the year.
I have used that order.
So we have to we have to use this, OK.
So if you want to use this sort, that means here we have to do here we have to add it as a use eliminate
and after that eliminate that will be as a support.
OK, that means the support and the support that is our Fassett
capacity and the Fassett area.
We have to add that out.
So that will be as Mike as make sure you add it as if it's perfect.
OK, so now if you can get a save on and now on to check it again, go back.
A freshet who that user email address and the password is a logging and you can see snaffling of something
wrong, the current shell is not match, so maybe you do me one, two, three, four, five of you with
a login.
So now it's showing as a potential do not match for the I mean, that means it's not actually logging.
OK, so it's not logging.
So no one to do.
I also want to check it with the admin.
I go to that admin into the admin is no email addresses admin at the original dot com.
Let's check this out with the admin and password is the default password.
The password.
And now if you click at the locking.
Yes, now it's locking that, now it's actually locking with the admin, if you go to the admin dashboard,
that does work because enter yes, you can see for now is locking the door.
I mean, you can see something as high admin because of all the admin I have already do with a name.
So now that name is visible.
But right now locking is not working.
So first of all, here we have to actually segment what we saw here.
When you using that user, then it will be right back to the user dashboard rather than when we put
that admin email address and the password.
And so that redirect to the admin dashboard.
So maybe they have some of the issues is happening.
So here I happen to have to check it, OK.
So better to continue this process in know.
Next video is step by step.
We will solve it.
So thanks for watching and I'll see you in the next video.