Hello, friend.
Welcome back.
You know, previous video, we successfully set up our brand base, right?
And also we get read all the data and visibility on here, but right now we don't have any data.
So now I want to do I want to insert some of the brand data and the brand area.
They have the two options.
One is the brand name and also the brand image.
Right.
And also I have created another database table as a brand.
So not only do I want to insert this data from our space 1738, that is our position.
I have already added in our base that is in our index.
Right.
So that is where I have already loaded into the brand controller.
So it will be loaded.
Don't add mean brand under the index.
So that is the index plate here.
Here I want to do want to insert it.
So if you want to insert like that is an actual option for the form.
Right.
So that is actually the font.
So from here there is one of the input feel for insert that our brand name.
Another is for our image.
That is the brand image.
And after that that will be as the ad button.
So when you click on the ad burn button, then our this from action will be executed.
So for the reasons here, I want to turn to create the out and I just name it as a store, not the category.
I name it as a brand.
OK, and Methode will be at the post.
I'm here also want things I want to share with you like here when you actually uploaded any images then
also here we have to.
Do you have the added that ency type.
OK, so we don't without that we can not actually able to insert any data that with the images, so
name it as ency type and see.
So that will be at the end to make sure you added an NC type will be as a multipart multi part and then
form data form data.
OK, so make that sure you add that and see type multiplatform data and also make sure you add that
CSF token so you don't see yourself in it.
Not should be in any data.
So that is allowed so that there is true.
So now we have to do we have to create our T.
S in our area.
So now go turn out so that to me before I have already in St. Peter.
I copy it.
OK, and this will be at the Post.
Right.
So here I have already added that as a post method and our name will be as a store brand.
I copy it.
So name this out as a store brand and also will be not the category controller.
It will be as a brand controller.
And here I name it.
I name it as a whatever you want.
So right now I want to do I want to actually change it.
I want to make it as a brand ad hoc brand.
So that will be as a brand ad and then into the brand controller.
I want to create the method.
So here I named the store brand.
OK, that means they store, you store and the brand, so name it as distribute.
So now to do that, to create this method and create this Estaban method in our brand controller.
Now go to our brand controller.
So here.
So after this method, I want to create another method.
So here I want to create another one is will be the public and then function and then our method name
will be as a brand that Mr Brand said today.
Strabane here.
If you want to add some of the validation with things we have already, I have already discussed about
in the category controller, the category controller here, you can see the result of the validation
system that's on the validation.
You can add it, but I copy it.
I copied from the category controller.
It is the brand controller here.
I put it so far and I hope the concept is already you already know about that concept.
What exactly the things here I did on here.
So first of all, the result will name so for the insert that I have already two of this field.
One is the brand name and there is a brand image.
So now I want to make it as a brand name.
That means brand name will be as very good.
So this brand name means that the global name field.
So this will be good and also make the image will be good.
I make it as a required and this brand name will be unique.
OK, unique will be for our wish table.
It will be unique.
Our this brand table.
Right.
So that is our brand stable.
I want to do want to add it.
And also there is a maximum character you can also assign, you can also make it as a minimum character.
If you want to add that minimum then it will be as a minimum of minimum you have to add as a four character.
OK, so now I add this for character and also on to that another one.
I copy it my best.
It's also there is another field as the image that means a brand image, if you want to add some of
the branding is recommending can added.
And also here I want to.
To make it an extension because of all that is the inmates, right?
So for the inmates, which extends the you support, you can actually add it.
So we feel that the extension that is imeem is.
So you have to add that Mamie's and here you that extension name I put out there, and it'll be as a
JPC or the JPC, Zippy's, you will be supported and also be and you will be supported.
And also you feel that that you can add that right now it's not totally perfect for me.
So here that will be all that our immediate extension for our validation.
OK.
And also here you have to do we have to if you want to display some of the your nickname, you can also
use it like here I name it as a brand.
That means our band name and that will be as a required so make it as a record.
And here it will be display as a please import brand name, which will be displaced import brand name.
And also if you want to display that brand name minimum category, any message that the minimum.
So here I name it as a minimum subminimum point, which will be at minimum, then it should be displayed
on either one.
That means a brand or longer.
The longer than four character,
so focus on this type of one of the validation is still the display OK event.
So that is our validation part.
So if you want to check it, I want to check it if can save all and now if you refresh it.
Now, if the ad brand and see swing is an undefined variable request because of what I didn't add any
requests.
So when you as I told you before, pointing out that any stories that we have to do, we have to pass
that request.
Right.
So I forget it will be a request when you actually get any at all.
Good, then everything everywhere will be very easy to you.
Why exactly display that at all.
So here also request and the request.
So that will be as a dollar request, right?
So make sure you add it and then our validation, now you get to save all.
Go back and refresh it again, not lose the at brand.
Yeah, you can see it's not showing our customers as a please improve your brand name and it's also
showing us a brand may feel insecure.
And also, if you choose any image like here, I choose the PDA, that is the extension name as a dot
pdaf if you open it.
And also if you add that apple and after that, if they add brand.
Now, Casey is not showing us the brand image, it must be the file of the type as a JPC, APEC and
the Panji conference, that means our validation is done successfully working.
So that is a validation I have added.
So that is a validation is perfectly getting.
And also if you put that as a same character as a three character.
OK, I bought that character on here to here to the brand.
You have to add the four character limit.
And if you click as they choose the maze.
Hmm, I choose this one again.
Click on the add brand because is not perfectly visible.
The brand name is must be the letters atlast for character.
So that is our custom message.
So that is actually a custom as it is visible I hope friend validation part is very much clear to you.
And after that I want to do I want to insert this data.
OK, so insert this.
That means they have the tuffield.
One is the brand image and that is the brand name.
So first of all, I want to add that our brand image.
So if you want to add that brand image after this, OK, here after this, I take one of the variable
and I just named that variable as a brand image.
Whatever you want wants right now, I name it as a brand and that image.
So that will be as a brand image.
And here with this request, we have to pass it.
So with this request, I want to pass.
That will be our which format?
That is our file that read the file format.
So here I found that our file and file, our filename, our filename.
I have already declared our filename as a brand image.
So now I want to do want to add that brand image.
So if you understand this part, that image portion will be very much easy to you.
OK, make sure you understand.
If you have any confusion, just let me know about it.
So I just take one of the variable and here I pass that our requested image.
That means what are the images you choose from here?
So that is our requested image.
Right?
So I d requested images, I take it with our D variable.
Is that clear?
Now I want to do when any user actually choose an image like here from here.
If you choose this type of bomb the image as a cake being.
So I want to do I want to make these images will be as a.
So if you want to make it as unique, then I want to do I want to create some the auto generated idea.
OK, that means here, if you want that it's on auto generated ID, then I take one the variable, I
name it as a name and generate.
OK, DeGennaro that basically better I'd name it on the variable of the name Jenrette and Elavil that
have also the function as a hex hex decks.
So Heggs D.
So here with this I want to do, I want to create one of the unique idea.
OK, I want to go on to create the unique ID.
So this unique idea I want to generate.
OK, so automatically the system will be generated on the unique idea and this unique idea.
I take it without this variable I hope print is very much clear to you.
And after this I want to do I want to take another variable.
I take it as the emails emails underscore extension, that means here we need to add our extension.
Extension means every images like means here if you go and if you go here, because every image is they
have some of the extensions, like the extension of the JPC.
There is a PMG, there is a PMG, and also there is the B and and there is a JPC.
So we have to do we have to actually get this extensions.
If you want to get this extension, then you have to do that.
Also, another building command, as is the law, is that the law is the law.
And with this is that the law here, we have to do we have to add our this inmate's name.
So first of all, that will be our disempowers name.
OK, that is whose image you actually upload it from to this position.
So here I take this image name.
We take this with this variable.
So in particular, that image here will also get the extension of this image, the extension, if you
will, to get that image extension.
They have the default on the function as a get blind, blind ordinal extension.
So that will be as a blind ordinal extension to make that sure spelling is correct.
So that is a brand name and then get Clide extension.
OK, so here that means that is our uploaded images.
And also, shall we get that this image extension perfect.
So here I take it with our this variable as the image extension.
And after that I want to do I want to add our generated code.
That means you should be getting our extension right.
So now I want to do and combine two of this.
I show you here I take one of the variable as a.
Email's name, I want to create the unique name, right, as I told you, so it will be a unique name
will be out this.
That means our unique code.
So unique code will be concrete.
So here I want to do I want to contribute.
Sorry, I want to concretised with the dot and after the dot, it will be connected with our extension.
That means that is actually our extension.
And that means when you upload any images or any upload any images from to this position, it will be
created.
One of the idea that means it will be created.
Sorry.
This type of one of the ideas.
So that is our generated idea, which I have already created with our unique ideas.
So it should be clear that this step of one of the unique ideas and after that, that will be as a dot,
that means that will be as a dot.
And after that which that extension, if this is actually Binsey, then automatically it will be as
a project.
OK, so then it will be as a PMG or if you upload it, any Jeopardy major, this will be as a deputy.
So you should be ready to step up.
One of them is name name.
So that is our immediate name I hope is very much clear to friend.
And after that I want to do I want to upload it.
OK, that is where you will want to upload.
So I take all the other variables app and the location, location application means whatever the places
you want to upload.
So right now I want to do in our public, to the public and to create the folder, look on the folder
and name it as emails and into the emails folder.
I want to create another folder as a brand.
OK, I name it as a band, so here all that our brand related emails will be saved.
So I want to do want to add both of these.
So here I want to add that, first of all, it will be as emails.
And then I have created another folder as a brand.
So that is our band.
OK, make that you at this part.
So one of our unique emails that is unique in its name will be Save This Up location.
That is that is a clever application.
So now we have to do we have to set it up and we have to send out these emails.
OK, that means our main emails, that extension emails we have to update.
So I show you like here I want to take another variable as the last emails.
That means when it should be published, it that means you will be saving our this folder before saved.
It will be we have to do a at our location.
That means this location, it will be safe with our this extension.
That means that is actually our email then we have generated with the extension.
I take that thing with this variable that means here I save it.
OK, and that means in particular this folder area, these emails will be uploaded.
So that is our location.
And then concrete our TS unique name right through to the I want the idea and then the dot PMG or dot
JPC.
OK, so that means that email extension.
So with this format it will be safe in our particular this area.
So that is our email brand folder.
Right.
So I hope it's clear to you.
So now I want to go on to say that means here I want to take as a brand brand image.
So there is a brand image.
So from here, I want to do want to move it.
So it will be move it will be Muoi, which places to move our this location.
That means our application.
So here I add that application with our specific image name.
That means there is a cloud image.
Right.
So now I want to do this one.
Actually the last portion.
What exactly that we did.
So here I uploaded both of this like that will be as a comma, so perfect.
So that's all you have to do application.
And the images here I have to do have diamonds actually added in our brand image.
So here to remove perfectly perfect.
And after that, I want to do I want to insert this data.
So here I insert our images.
That means here, upload our images and now I have to grab to insert it.
So I take our insert without using that.
You looking at him so brand, so brand that that is our brand model.
So with this brand model I want to insert sound to insert this data.
So here I will be in surroundings at all the door field, our filename as a brand, so our band under
its good name.
So that is actually our database, all that field.
OK, that means Here database will make the series preprepared as a brand name.
So that is a brand name and brand name will be our requested that is our requested field data.
So requested that that means with this request, with this request I want to do in the past hour because
the data that was our filename or filename as a brand name.
So no, I don't want to add this brand name Redfearn.
And also here I want to do want to add our image.
So that means our database will name as a brand image.
So I take it that brand image and brand image will be what brand image will be our this last image.
Right.
So here I have already uploaded it with a specific, unique name.
I take that things with this variable here I want to do and to pass it.
So that will be our brand image.
And after that I want to do.
And also, if you want that that created that you can.
That means our filename as a creator that I want to do and to add this filename as a creator, that
it will be as a carbon.
So if you want to use it as a you have to use that carbon.
Right.
So carbon.
And then now that means when you uploaded that brand, then automatically it should be created by president.
So here we have to add it and also make that you add that semicolon.
So that's all you have to do.
So if you use that carbon, we have to do we have to also use it.
Right.
So here we have to use it.
That means after this brand.
So here I want to do I want to use that or carbon.
So that is used in the eliminate.
That means that is actually illuminate.
OK.
So this illuminate here.
I want to do I want to use it in the illuminator and then the support and then the our carbon.
So that will be as a carbon.
So make sure you added that means you have to also use it.
That is a.
Carbon.
OK, and also I added our this one that we our brand perfect, so and that's all you have to do.
OK, so when it should be safe.
Safe after that.
Safe if you want to return redirect to the some of the parts, you can also return it so better after
this.
OK.
After this I want to do and return and then the reduc return redirect with our same page as a back base.
So that pays into the back base with some of the notification I want to pass.
So we I think you already remember that part here.
I don't I don't know the idea of the success.
And then here should be despite some of the messages, a brand inserted successfully, because this
type of one of the message will be displayed as a brand instead of successfully perfect.
And also make that you hear I did that work before wrong.
So here, make sure we don't need to add anything.
OK, so that is actually our area and there is a comma, comma, and here we don't need to add anything.
Perfect, and then the return to direct back with our success message, that means it should be returned
redirect to our back base.
That is the last one.
So here, when it's will be inserted successfully, it's rejected our back Zimbabwes and here it will
be.
Display this message.
Right.
So this message is first of all, I want to check it into the index.
Into the index here.
Yeah.
I display that our condition for the success, if we get any success message, then it should be displayed
this message.
Right.
So that's all you have to do.
OK, so now let's check this out.
If everything OK.
It should be said this, that as we have already checked, our validation or validation is successfully
work now to insert our this image and also insert our brand name.
Now, let's check this out, if not near the sea wall and now if you refresh it.
Now, I just want the brand name as an apple and for discussion purposes, I choose on the image as
a light on this one OpenNet.
So that is according to PSP now because they add brand.
Yes.
You can see Frain now.
It successfully inserted this data that the brand inserted successfully.
And you can see also it's visible because of all the previous video I have already.
I get all the data.
And here you can see that is the Apple name is visible images.
I didn't display any major.
So that is our creator visible.
If we go to our database, click as a browse.
Yes, you can see there is a brand name and all sequence event that is the inmates, the inmates folder
brand folder is created by the specific ideas that means automatically generated by the.
And after that, I need the extension.
Right.
So that is the things I am talking about is automatically created.
One of the ideas and you can see when last it should be applauded, that file location.
And that is our unique name.
So that is a unique name means that is our word in general, that idea.
And then dot and after the dot that we are extension and you can see that is our first of all, that
is our idea.
And then that they have the dot and after that there is the extension.
So if you want to check it, like if you go to this folder, yes.
You can see it's not successful in Saturday's data, in particular this folder.
That means we successfully insert this data.
So right now and don't actually add another one.
I made me does a Gucci shoes, for example, but I'm actually using this maze like I choose this one
click as an add brand.
Yeah, or another band is visible and also to display our message as a inserted successfully.
So that is around the band.
And if you go to database, refresh it and you can see there is another idea to the brand and the images
so annoying to do and actually visible this image.
So that is I have already added in our index based Khutor Index pages into the index.
So friend here you can see from here I have already a display all the things with our brands because
of all from our brand controller.
I hope you remember it from here.
I get all the broadband data and take the things with this variable and here I pass it with the compact
in our index page.
Right.
So then we foreach it.
So now that is our image through the image and then added.
So if if you want to display that image here, you have to do you have to add as the outset as it means
your main to.
OK, that means your product directly.
So that will be as I said, OK, that means that is extracted from your product directly, if you will.
If you want the visibility, you have to add it as a positive to the asset.
OK, so with this I said I want to do right now and do a display.
I get all the Taliban data and take the things with this variable because of all this variable here.
I display our brand name right now and to do and display our another film.
So another feel if you go to our database and the filename as a brand image, I want to do and display
our this bad image.
So here with this band, I want to display that brand image.
Brand underscore e-mails.
OK, sorry, brand image.
So now what should we display our brand image them here.
Also, if you want to add some of the style for adding white for a specific image, you can add it.
So make it as style.
OK, put some of the style.
And here I want to add to the height.
Height will be as a 40 pixel.
And also I want to add some of the wide wide will be as a 70 pixel, OK.
So it'll be 70 people.
So that's all.
Now our image should be visible.
Now if you click the save all and now if you go your side and refresh it.
Yeah, you can see that is our guzzi our product.
The image is visible and also showing the creator that that means the creator time and also display
the images and the created time.
So here that is our images and also show our height white.
Perfect, I hope and everything is very much geared to you.
And now we want to add another one like as a test.
OK, I want to test Brand through the images right now.
Choose this one company and brand.
Yeah, our new brand is selected, and you consider the taste and always get that our latest data that
as a fast as a test or images is visible, that if you go to a database, that means our folder here,
you can see it's not successful sight at all, that our image is perfect so far.
And I hope you can well understand about it.
How can insert some of the brand name with images so and also in our database to be successful in this
data?
Everything is done great.
So, you know, next video and want to work for our edit.
OK, that means if you want to edit these images that we see from this brand name, if you want to read
this brand images, how can do that work in your next video?
I will show you that things with a live example.
So thanks for watching.
I'll see you in the next video.