Laravel 8 Tutorial | Setup Home Slider Page Part 49

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends welcome back in our previous video i have discussed about that home brand so right now from here you can update your brand and how can visible it in your site i have already discussed about that things with you and here you can see it's not successfully visible or all that brands so now in this video i want to make our dynamic that means here this slider i want to dynamic okay so here if you want to make it dynamic how can do that work in this video i will show you that things with a live example so friend our procedure will be just like that same okay like here that we want the image field will be needed we have to create one of the database table and also to the database table that is the images field that is our the title field and short description field so here i want to do and to create one of the um one of the tables so if you want to create this table what exactly you have to do you have to actually migrate it and also you have to create one of the model for this one so i have already discussed about that main basic functionality so right now we will apply it on here so i want to open it the cmd and now first of all i want to create one of the model okay so here if you want to create that model as a php rt sun and make and then model and i want to create another model as a slider okay and click here on the slider model and also i want to migrate one of the file click as a enter now it will be created two of this file or it will be created one of the model and also it will be created one of the migration file right so now i want to create it so here you can see it's now created another model as a successfully and there is our migration file so now go to our two of this file so here it will be just like our brand right into the brand we have already discussed about that things with you i have already discussed about that brand you can see the brand there is actually the name there is our brand images so it will be just like that same so here first of all i want to create our table so i have created the migration file so that is in our database neither there is migration and that is our sliders right so now i am going to put that our field name so they have the field name will be needed as a three field will be needed right um yeah that is the images and there is our title and there is a shop description so now i want to do i want to take another one i take another one as a title our database field name will be as a title and also another one i want to take another one will be as a description so this will be the description field and also another one for the image so i name it our database field name as an image and the title will be as a stream okay that will be the stream and that is our description description will be actually large amount of the um character so here back make that you i'm i want to do and to make it as a text okay that will be as a text field so here we can actually add multiple text in containing particular that area and that will be assisting okay that image will be assisting and also you can make it as a nanobow then better i want to do and to make it as an honorable that means if this is empty then it will be okay so i make it as an honorable okay so that will be the number make it to the number and the number perfect so that is our database table so now i want to do and to click as a save all and after that we have to do that is our outlet so right now we don't need this and here after this after this here i want to do and to migrate it so you can do migrate you have to run as a php artisan and migrate right so there is a php artisan migrate so that the same command i have already used a lot of the time if you click the enter you can see it's not successfully created out this table so if you go to our database and here if you go there is a new one is added you can see there is a slider so there is a slider there is a three field as a title description and the image perfect so after that i want to do and to make our update our model that means you do the model i have also created on the model as a slider so here it should be just like our better brand that is will be as a protectable you can see so now i copied it and now here i want to down to update that part in our slider so after this i paste it so here that will be a three field so i want to do and to update that three field so our one field i have declared as a title that will be as a title that will be as a description and also i want to make it as image that will be the image okay friend so make that sure you updated your all that field in your model so i have created model name as a slider perfect now click on the save all so right now we don't need this model we don't need our this uh migration file okay so perfect so now i want to do on to work uh for our this portion that means here i want to put on the link okay so here if you put it then automatically one of the page will be loaded so if you want to put that so that is in our sidebar now go to our sidebar into the sidebar i want to create on the new route i copy it so that is our sidebar so here i want to do and to clear on the new route so this will be as a home slider so i name it as a home door slider whatever you want so right now i make it as a home slider so now we have to create it we have to create it in our web out go to our web route so that is our category controller before i have already discussed about that things with you there is a middle earth better here here i want to create it so i put some of the note that will be as um admin okay admin all route so that will be the admin hall route so now here i want to do one to add one of the route i copied and here i paste it so i name it our route will be as a home slider i copy it so that will be our home slider friend i hope you already know better i want to do one to create another controller okay so if you want to create another controller what exactly you have to do i create as a php artisan make controller and i'm going to create another home controller okay i name it as a home controller so for home related everything i want to save with a specific this controller area so that is our php artisan make controller and i name it as a home controller now click the enter now click as enter now you can see our controller is successfully created so now if you go our controller so that is our controller and that is our home controller right so now first of all we have to add this controller i hope you remember that part in laravel 8 that is actually little bit changed so here we have to first of all use it i have to use this home controller so that is our home controller i copy it so now i updated that home controller so now we can actually access our this home controller so here that is our admin all route so i updated our home controller into the home controller i want to create one of the method and i just name it as a home slider okay i name it as a home slider so this will be as a one of the path name i want to declare as your home and then the slider [Music] and that will be as a home slider so now i have to want to create this method as a home slider in our home controller so now go to our home controller and here i want to create this method so it will be as a public and then function how much easy it is you can see friend if you already understand my all the previous lectures then i think it should be very much easy to you so into the home um slider what exactly i want to do that means when you click as a home seller then it will be loaded one of the view page right so here we have to return one of the view page so now i want to do i want to return one of the view page so a view page means here i didn't create any view page so better i want to do that is our admin so into the admin i want to do better that is our brand i have created before so for the slider i want to also create another new folder then it should be better i name it as a slider okay slider so i have created on the new folder as a slider and into the folder area i want to create one of the file and i just name it as index dot blade dot php okay friend so now here i want to actually returned it that means into the home controller it should be returned redirect to the admin folder and then the slider slider folder and then the index right so here i want to pass it that means right now this space will be loaded on here and also i want to do in particular right now i don't have any data so whatever the data will get from here i want to actually pass it into the index space you can also do that work so for doing this here what exactly you have to do i want to use this eloquent vm so here i take one of the variable as the sliders okay take out of the sliders and then our model so here also we have to do we have to add our model right so i have already created on the model so now we have to use it use and here we have to add our app that means with the app folder i have created this model uh there is a controller models within the apps and the apps and then the our models folder and that is our i have created as a slider right so now i name it as a model [Music] okay models and then here i have to do i have to add our name as a slider so that will be our slider so make that sure you updated that part so that is our models folder there is a models folder and there is our slider model so that is our slider model right so now with this slider i want to get all the data so here with this slider i want to get all that latest data so i have already discussed about that things with your friend that is our latest so latest all the data i want to do and to get it so i want to get this latest data okay so i get all the data from our database and now and take these things with this variable so now we can actually pass it we can pass it into the uh our index page if you want to pass it we have to pass it with the compact right so now i simply pass it with the compact i hope friend is very much clear to you so right now i don't have any data so literally when you insert some of the data we'll get it and then i get it and take the things with this variable and now i pass it into the index space and here i pass it with the compact so now i want to update our index that means that is a cloud index page so there is a slider index space so this space will be um just like our brand actually okay so from our brand sorry into the brand that is index so from the band index i copy everything okay i copy everything from to this position and now here into the index that means in our slider index here i paste it okay friends so here i have already updated everything that is our extended layout will be as a home admin master and there is a section admin i hope you already remember that part so with this section it should be loaded in our component area so that will be as all slider okay that will be the old slider and for the slider they have the our all that actions and here it will be display all the tower um th field that means the serial number it will be display the serial number it will be display uh there is a title description and the image right so now i want to do and add the slider title so here i want to change it it will be as a slider title okay that will be the slider title and then it should be display the slider description or description so that will be as a description and then i want to display our another one another one is the image so it shall be display that image and then also it shall be displayed that action and then also you have to do the same things trend you can see before we did that work for our band so our concept will be just like that same so from our home controller i pass it right now as a sliders right so now to do and to change it as it will be the sliders as a slider okay that will be the slider and then if you want to display your index page so you can see that is actually the same things there's a brand so now to update it as a sliders and now with this slider with this slider i want to visible our fill name our field name i have declared as a title description and the image so that will be as a title so now i want to do and to display our title right so first of all there is a title and then the description and for the description it will be there is actually images so here i want to display that image right so if you want to display that image um that is our another brand title for the no data for the our created at so here i don't want to visible that created that better i remove it okay so before i have already discussed about that things with you and now i take another td another td will be with this slider i want to visible the description or description field name as a description i copy it so that will be as a description right and also that is our images so now with this slider so with this slider i want to visible our fill name our fill name for the images as image so now i copy it and now here i update our image right and also the image white height you can actually change it and then there is our 40s so into the forage if you want to edit it if you want to delete it you can delete it so with this slider you have to add it with the slider that means our slider id right that means that is actually our id so this is the id field also you have to delete it with a specific one of the id so it should be as a slider okay it will be as a slider indeed and the slider delete so here you have to create it so it should be just like our brand what exactly we did right so friend here that's all okay that's all that is also that is a permanent link so from here i didn't add that designation so right now we don't want i don't want to use it i remove it from here if you want to use it you can actually use it okay and that is our ad brand so right now i want to do here um there is a brand image that means ad brand so into the brand if you go into the brand you can see there is also ad brand is here but right now i don't want to visible this like that way here i want to create another page for the ad brand then it should be better actually so here i want to do i want to actually remove everything from here there is our table there is our dave there is our another call for so i want to do and remove it okay so i want to remove this call dev i simply remove it perfect so now let's check this out if you now click on the save all and now if you refresh it now go to our slider yes you can see it's not process successfully loaded our disk space so that is our slider table has a i'll slide that there's a serial number the slider title i better make i want to make it as a 12 so before that was actually 8 so i want to make it as a 12 okay now let's check this out clear the save all now refresh it yeah now it's actually 12. so here i want to want to add one of the button so okay here i want to add one of the button for the add slider then it should be load another slider so before i have loaded everything into the one same page so right now and to change it uh here if you want to change it so into the index here i want to do and to add another one okay i had one of the button so if you want to add that button i first of all i take on the ahead if and here i want to do and to add one of the button button and button class button class i want to add and button class will be as a btn okay btn btn primary or info i make it as info right now a button name will be as add slider so it will be as the add slider okay and then if you know check it i can save all um click the refresh so now here you can see there is another button is added as a add slider right so now i want to do also want to add one of the m s3 then it will be better i take one of the h3 or h2 okay i take the s2 as a home slider okay that is our home slider page now click on the save all refresh it yeah that is our home slider and there is our add slider so after that i want to do better i want to make it as a four okay that means the four and then here i want to add one of the bracket i don't know the bracket sorry that will be as a bracket i also want to add another one okay i want to add two of this bracket then now let's check this out it's clearly save all actually design is depends on you how much you actually want to look so that is our add slider friends okay so here if you want to make it as a into the right side you can also make it into the right side area so right now it's okay with me so now friend i want to do if you click as a add slider it should be turned in to our another page and from here i want to insert this our this slider okay so how can do that work but i want to continue this process in our next video i will show you that things with a live example so thanks for watching i'll see you in the next video
Info
Channel: Kazi Ariyan
Views: 247
Rating: undefined out of 5
Keywords: laravel 8 crud step by step, laravel 8 crud, laravel 8 project, laravel 8 tutorial, laravel 8 Fundamentals, laravel 8 laravel, laravel tutorial for beginners step by step, laravel project, laravel advanced tutorial, laravel beginner tutorial, laravel crud, laravel crud operation tutorial, laravel complete tutorial, laravel database tutorial, laravel framework, php frameworksphp, laravel registration, laravel basic, laravel for beginners step by step
Id: 92RYZ2SWBUw
Channel Id: undefined
Length: 18min 41sec (1121 seconds)
Published: Sat May 22 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.