Hello, friend, welcome back.
In a previous video I have discussed about that liability for authentication system and this authentication
system provided one of the dashboard, and from here you can update your all the profile.
And that is I have customized here to display our user name.
Right.
So now we knew locking then by default to the dashboard.
So this the dashboard, as I told you, if you go to the drought crowd into the out here with this and
don't so take it.
That is our verified email or not.
So there is another portion that you have to verify your email and then you get it.
And when it's so successfully done, then it'll be key to the test so that it just like that.
That is a written view and that is our dashboard piece.
That is one of the view pages.
If you go to that, our view, if you go to the views, you can see that it's the dashboard when the
user is logged in, then actually is visible.
Right.
So that is by default, all the things is ready made for the user.
So if you go to the profile, so everything is ready made for that user.
So here you can see there is all that our default user.
So right now I want to do I want to also create an interlocking panel for the admin.
So for doing this, if you want to check it, first of all, I want to show you, if you go to our project
directly, if you go to the CMG and right now, if you want to check that all the default round, then
you can also check it with WSP, RDM and Roud and the list.
So if you add as a pop artist and drought list and after the difficulties enter now can see is not provided
all the default out.
OK, so right now that is still too small.
So here that is all the thought out.
So into this area here, if you take it like the result head for the present, there is a password confirmation
and that is all for the password.
Confirmation that two factory logging.
I want to find out that we said that.
We said update.
And then there are also another one of the register.
You can see that the register and also there is another one is a logo.
And then there's the logging.
So this log actually how that logging works.
So this logging actually get on the map is working for this one.
And that is if the log will fortify EDP, the controller and authenticated position controller and all
indications controller that have one of the create maps.
You can see this.
The metal is working for these logging.
Right.
So that is actually the appropriate position.
Like there is a label.
If you go to your positive query into the positive for the lavander, into the vendor that have the
Lavall folder, you will find out that Laravel folder.
And that is actually a pretty good location.
Right.
So do the label that is actually showing the label and an authenticated section and then they have all
the authenticated station controller in this particular station.
What about this create map?
Who is working for this logging?
So that is the default one.
So right now I don't want to create another one for our admin so you can do that work.
First of all, BitTorrent to do and to create one of the controller for the admin.
And also I go and see some of the data.
So first of all, I want to create the controller for doing this right now or artisan is running.
That is a bipartisan service which will be needed.
And that is our another one and that is our outplays.
Right.
So I don't need this every moment.
So that is our project.
So here I want to turn to page one of the controller.
And if you want to create the controller, I think you already know about it.
That will be the PSP artisan make controller.
And then I want to promote of the admin controller for name does the admin controller.
That will be the role of the controller as the admin controller in our controller area.
So now the should enter consists system successfully created.
That controller is successfully created.
So if you go to our controller left in the step of the controller and that is our admin controller.
Right.
And also to do and to create the model for our beside me.
And also I have to create Loralee.
And also you need or one of the magnificent file, because for the user to have also by default all
the migration file.
Right.
And if you go to that here, you can see the flow of the user and for the user, that is all that user
table.
That is a name, email, email, verification at the password, current idea, everything.
Right.
So now to do and to add another migration file also for our admin, because all the admin related data
will be saved in our this admin table.
So I show you is best of everything will be very clear to you.
So first of all, I want to do the model as a Barbizon and make more.
And I want to create another model as an admin and also to do the admin migration file that under not
if the answer now is of create a pool of this file is created on the table and also created onto the
model.
Right.
So now if you go to our migrations, into the migrations, that is our advance table.
So you will be just like our users.
As I told you, we just copy everything from our existing one.
So that is up table.
And he considers all the fees right now.
I copy it.
I copy everything from our user table.
And now in our admin here, I simply passed it.
OK, so that will be the same.
That will be the name email.
The email verification.
The password.
Everything will be just like that.
So here I have updated that part of the seawall.
And now also I want to update our admin model.
So I have also control the model of the admin.
Right.
So it'll we just like them, our users.
So right now I copy everything from the user.
I copy everything that is the default model.
I copy everything, I copy everything from this position.
And now our admin model to this admin model here I simply posted.
So here only we have to do we have to change that class and this class will be as admin.
So here I simply add as admin.
So now I want to do I want to create the ability to see the sea walls.
So now that is the table.
I want to create a database that is here lexicon to create it.
That means that Mike and I have already done so.
Now we have to do we have to migrate it right now and want to make it.
That means here ran as a PSP artist, some happy person, Mike did not even enter.
Now we see our migration is now successfully completed.
So now if you go to our database and into the here, because a refresh now is another one is added as
an admin so that they add this name, email, the email verification, all that field is created for
our admins.
So now I want to go on to insert some of the data so you can manually insert some of the data rather
than you can also insert some of the data in the appropriate database to be using that.
So if you go to that level official site and the official said, if you go to the documentation and
the documentation, there is a database and a database that is sitting.
So with this coding, you can actually insert some of the data that you like.
If you want to create some of the seating that are on the command of the USB abdisalam cedar and that
you'll see that.
So now I want to create a new one.
I copy it.
So I copied and in particular that position I based it.
So here, if you want to find out that sitting all the file so that these into the prepon minimizes
it.
So that is our migration.
And here you can see that they are Cedar's Sydneysiders by default.
There is a database Cedar's and also there is a factory city, the factory by default.
There is also another one as user factories.
So not one to do and to create another factory.
So if you want to create another factory, if you go to that level official of sites, that is for the
testing.
So if you go to the testing and the testing and here if you go to the database and the database right
now, what we are using that Lavallade and here that is actually testing interaction.
If you want to create some of the factories you can see come on line.
We have to add, you know, I simply copied so here before seeding, I want to go on to run it.
So I make it as a pop artist and make factory and I want to go on to create another factory as part
of our user.
As I told a friend here, I don't want to touch any hour before all that cool.
I want to replace everything as the one.
So we will create that one of the another factories for our admin.
So now I don't want to create it and name it.
So that will be as a pop artist and make factory.
And I want to create another factory as admin, name it as admin factory because that will be as the
admin factory.
So noncyclical.
The enter now is different.
It's not created another factory created successfully, so that is another factory as the admin factory.
So here we successfully created this factory so that there have been factory.
So right now I want to do want to update it.
So here we don't need this.
I will be to remove all the file.
Then you may get a little bit confused.
So that is our admin factory that will factory.
If we go to that user factory, they have some of the you can see when this will be granted by default,
you can actually absorb the text.
So here are the returns.
I copy everything.
And now if you go to that web, sorry, if you go to our admin factory into the admin factory area in
the return area, you simply passed it.
So here, that is all that our data.
Busfield I have already added in our.
Database, that is the database, if you go to the migration and the admin table here, I have already
read that email as a name email, right.
That the password so that no one going to insert some of the data that is here to have some of the data,
that is name will be saved in our database table into the database to disable the name.
So no one would want to update it.
So here I want to save all the data as the admin.
OK, that will be as a name will be as they have been swirling around it.
Everything will be very happy with that email.
I also want to add some of the email and that means here I want to add another email of the admin at
the rate Gmail dot com.
So this type of the email will be saved in particular that area and then password verification as a
now and password as a password.
That is that the byte before also are named as a password.
OK, and that is a remember token.
And also they have the starlin.
So that is is telling also you have to do we have to use it if you go to the user factory into the user
factory here, because that is a cluster.
We here we have to we have to use it.
So make sure you use it to go to the factory here.
I have copy everything to know.
So be when I see it then automatically.
So be at this name as the admin email file will be as Gmail dot com.
That is all the data will be inserted in particular that area.
So that's how our system works right now.
First of all, I don't want to add that this start so here that I use it.
So make sure you use this.
OK, so now we have to do we have to update it.
We have to update it in our database that see that into the system.
They have the file in the database, see the end of the database, see that here we have to do we have
to add it.
So right now that we follow the comment out and I open the app modules so that right now I have already
created all the models are modeling as the admin.
Right.
So now I don't want to add that as the admin model and factory.
I want to make it as a zero right now.
OK, make it as a zero and then it.
So I have already created that model friend.
I hope you already know about it.
So that is all admin modules and also we call our admin model.
OK, that is our factory setup I have already created.
So everything is not so now we are ready to see that happen, to see this data.
So now to the Savol.
So here I updated our this post that the data will be inserted in our database.
So now it will be inserted.
Now we have to we have to see it.
Like if you go to that command line, I'm here.
If you run with BRP, some VSP are the and the migrant magnet and I also want to see it.
So that is a seed.
So now you can enter now consistently as nothing to migrate and database completed successfully.
This means right now here I have already added some of the demo data.
Right.
I have added that name will be as admin.
Email will be as the admin and password field into the password field have of the hash tag password.
Lippestad is the password because it's also so common that this password actually the password.
Right.
If you go, if you go here right now that is our admin.
If that Brouse.
Yes.
I hope friend is very nice to you.
So now you successfully see it and now it was all appropriately and our name will be as the add admin
email me as a general dot com.
That email is also verified.
You can see that the email is verified.
They have the password as a password and that is I remember and everything is not successfully inserted
that data admin admin table.
So here we successfully complete that part.
So I hope is very much vatu.
So now we have to do we have to create one of the guard.
So how can we.
It's on the guard.
And how can working with this guard in our next video also that things with a live example.
So thanks for watching.
I'll see you the next video.