Hello, friend, welcome back.
In a previous video, we successfully created one of the Laravel Prozac, and when you stole that Laravel
project, it's provided this type of the folder structure.
Right.
So right now in this video, I want to discuss a little idea about that folder structure that it's really
very much helpful to you.
So don't step by step.
Every folder will work.
Like, first of all, there is an app.
App means when you install that Laravel, it's actually provided on the app folder into the app folder
to have the console.
That is our expectations.
That is our AWP and the models and the providers.
So Lavall actually use one of the design pattern and that is the call that NBC pattern.
That means a model view and the controller you next video.
I will discuss about that, more details about that.
And we see how that MVC pattern actually work.
Then it will be very much helpful to you right now.
In short, when you want to work with the database, everything that is related, everything will be
in our particular this model area by default.
They have the want the model as a user model.
And so when you are actually working with this database, that means if you want to get some of the
data from the database, you can have.
We have to get this data with this model.
So that is the model.
OK, and also the if you want to get this data from the visible need to have another option for the
resources, for the view.
So if you want to get this data and if you want to view it, you have to manage it.
Right, so you can manage it by the controller.
So do the EDP folder here.
You can see that is actually the controller folder.
So we here we have to do we have to create all the Taupo, the controller in particular that area.
So that is the our main functionality that the controller.
So with this controller, you can actually manage your all that model data and you can manage, you
can visibly to the view based.
So everything actually managed by this controller.
And also there is a midi lower and middle lower.
Is that the by default some of the lower and Middle East like as a guard.
OK, so if you like, for example, if you go to some of the building and into the building, they have
one of the guard.
And if you go to room number one fifty or if you want to go to the room number one seven, then this
guard will instruct you, OK, that means he will be permitted that where exactly that one room number
one.
Fifty seven.
OK, so that is actually the middle class with this you can actually manage.
You're all that user that is which user is authenticate for, for access which you warrell.
OK, so here everything you can manage it with this modular.
So I would love to show you how you can create some of the media are.
And how can working with this everything only step by step.
Everything I will show you.
Don't worry, I will create some of the controller.
How can working with this controller, how can working with this model everything I will show you.
And there is a provider that is all by default, a file that the app service provider.
So here that is all that by default we need install that new project automatically and get the step
up one of the folder as providers and there is a bootstrap.
So that is a bootstrap folder that is configured.
So all that configuration file in particular that area.
OK, so here all the configuration files are app configuration.
How can working with this app configuration file, it will also show you and then that is also another
one as a database database means if you want to create some of the database.
OK, so if you want to create some of the database migration stability, that is a clear option for
the migration.
So and install that level automatically is provided.
Some of the file like you provided some of the table as it used to be.
There is a password reset table and the create fills up table.
So that is a migration file to the how can create that migration.
That means if you want to create some of the database table into the database idea, how can create
it with this migration lately?
I will also show you like a friend.
So that is our database bocian.
That is a public position.
That means here that is all that your CSA is and the JAYSUS file will be set up on here.
That means here we have to add it.
OK, so that is the our public portion.
So here we have to add all that your CSIS here says are the images folder.
That means if you want to load some of the team, then all the team files will be saved, in particular
this public folder.
OK, so also little us to show you how can working with this folder and there is the resources so into
the resources area that is a by default, all the CSA, the Jessa's and the languages and the views.
So that is the main views file, as I told you, friend Wallarah.
Well, actually working with one of the pattern that is MBC pattern.
So this view space is actually that is actually the view pays.
OK, so when you actually get some of the data from this data, like for education purposes that actually
comes from the database, then this stuff actually comes from the database with our this model.
Right.
As I told you, it be comes from.
We are.
This model, and it's a little display, this data in our D view base, so that is the all the view
space as a welcome plate right now.
That is actually one of the welcome plate base.
So that is the view page.
So every viewpoint we have to do, we have to create in our particular D view folder area.
OK, so it's very much important parts.
So that is a view.
So if you want to get the data from the database, that is a model and if you want to control it, that
means you get this data from the database and you want to visible it in our view.
So that is the main portion will work by this controller.
OK, so that is the NBC pattern.
So it's pretty much a simple thing.
So any work then everything will be more clear to you.
Don't worry about it, OK?
So that is the hour.
All the resources and also there is there out throughout means that the two types of problems, one
is the appear out of the webroot.
So if you want to create some application with the web, then you have to use it with the PSP.
If you create some of the API related some of the project, then you have to create it with our API.
Like if you are working with the.
Yes, if you want to working with the viewers, then you have to create all that.
Your API related everything into the API out area rather than there is a web browser.
So right now we are working with the Web version.
Right.
So we do the Web video.
I want to create some of the Web project.
So for the results here, I want to create this web.
So if you open it so that is the by default one of the you are allowed and out means that is the or
you are OK like here that is if you click on here rather than that is actually one of the root.
OK, so that is the and also that is one that I also every doubt you can actually monazite from to this
position that is allowed sadiya there is a web page B, so here we have to create all that out.
So and also I'll show you how can working with this throughout everything step by step will be more
clear.
And then there is already stories and then the real test is so that is all that by default file.
That is a vendor, that is all that you by default packages is installed here.
You can see that is a composer.
So everybody for file is installed in the vendor area.
So that's all and result in the file.
There is also an important part.
I will also show you that this later, like if you want to create some of the database and here from
the person, the connection with the database, then you have to create this connection with our decision.
OK, and also when you have truly deployed this project to the Web server, that is our AP WORRILL.
So here we have to do we have to update this app.
You are.
So right now we are working into the our localhost for the reasons you can by default.
That is our localhost.
OK, so literally I will also show you.
So that is our EMV file for creating the connection with the database.
So that is a cloud database position.
So literally, I will also show you and then that is our all the default file.
There is a computer just under there is a package just on which package actually you are using.
Everything here should be displayed in particular that area.
And there is our composer, just some which are package.
So every package is also display.
You can see right now there is a lot of little package that is in Laravel framework.
That is a lot of a framework that we are using as a version.
And there is a Gisel that is a seven point seven one zero point one.
So one of the things we will install, everything you will get from this position because of the regular
composer, just so that is some of the basic idea.
And don't worry.
So literally every folder will work and everything I will show you with the live example of a friend.
So you step by step, everything will be much clearer to you.
So, you know, the next video I want to discuss about the MVC.
So NBC, as I told your friend, as a model view and the controller how that things exactly work.
You know, next video, I will give you some of the short idea about that NBC.
So thanks for watching and I will see you in the next video.