Install and Setup Laravel - Complete guide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we'll be seeing how to install and set up larel for the first time so we'll be doing this inside a fresh Windows installation so it will be easy for you to understand so let's open Chrome browser and search for s x m PP and you can go to the link here and download the latest version for Windows now let's wait for the download to start you can see that the download actually starts on this page okay so you can see the download started here so wait for it to complete and you have to install samp so inside s we will be having PHP and Apache so the download is complete right now so let's open the downloads folder and let's double tap the samp installer and we have to install the samp application so you can click yes here now we can see that the samp installation has started so you can see a warning here simply ignore that now you can click next click next here you can choose the folder to which you wish to install samp so let's keep it to the same and click on next click next and next we can see the installation started now let's wait for it to complete now you can see that the samp has successfully installed you can click on finish and you can see the samp has opened so now this is our samp dashboard control panel you can see that we're having Apache and MySQL so let's start uh after installing Sam we have to add the path to PHP so let's add the path first of all you can click on the Explorer button from here and here you can see we are inside c/ samp we can also open this by going to this PC and open this Windows C drive and you can see samp okay here we can scroll down and you can see PHP open this and we have to copy the path you can see we are having php.exe here see this so you have to copy the path so you can copy the path from this here okay simply copy the path from here and we have to add this path to the environment variable so search for environment variables and you can open this edit system environment variables and here we can see this option the last one Okay click on here and we have to open the path double click this and we have to add a new path click on new and we can paste the copied path here c/ s/ PHP okay and you can click on okay see you have to add the path like this okay don't make mistake otherwise you'll get errors okay so click on okay and okay okay so now we have added PHP to our device properly so now we can search if PHP is properly added by opening command prompt and type PHP hyphen hyphen version now you can see PHP is properly added so let's close the command prompt now we are having samp and PHP properly configured now we have to add composer so let's go to Chrome and search for composer so you can see get composer. org click on the link and you can go to the download button and here you can see we are having a download option here so click on this composer hyph setup.exe and you can see the download started now double tap this install for all users you can click on yes you can click on next here and you can see the path of the PHP installation so it is automatically detected since we added the paths to the en variable so we don't have to do anything anything here and click on next click on next next and install Okay so the installation is complete you can click on finish that's all now we have installed samp and composer now we can go to LEL and install larel so search for larel you can see lal.com click here click on get started and scroll down and and you can see how to install larell using composer so you can see this so we'll be using the larell installer and we'll be installing it globally and then we'll be having a command larell so this will be convenient if you're using larell frequently so we are going to install this we can also create a project by using this command so here we'll be seeing how to install a larel installer okay so you can use both the commands everything works copy this command and open command prompt CMD and we can paste the command here so here you can see that it is asking that the Sip extension is not enabled so for that we can go to the samp installation so open the samp control panel and here you can go to the config straight to the Pache you can see this config button click on this and open the php. init file okay open this file so here we have to search for so here we have to search for zip so click on control F and type is IP and hit enter now you can see on the bottom here extension equal to zip so we simply have to remove this from here okay simply remove this sem me callon and save this and you can close it and now we have to close the command prompt and open the command prompt once more and we can paste the command here okay wait for it to complete so here we are installing the larel installer so this will be installed globally on your Dev Dev if you're creating a project directly so let's go to the documentation I will show you so here if you're using this command you simply have to create a project directly so this is creating the project directly so instead of this example app you can give the name of your application that's it you don't have to install this globally if you want to install this globally it is an easier way you can use this command larel so this is the recommended way if you want to install LEL installer so now open the command prompt so you can see the larel installer has installed properly now we are having a command named larel larel hyph hyph version see you can see the larel installed version 5.2.0 so let's close the command prompt now you need an ID so we can go with either PHP storm or vs code so let's search for PHP storm so this is a paid ID so you can see the pricing here I recommend using PHP storm if you are willing to go for this you can also get an educational offer for this you can get this ID for free so go to the education section here and you can apply for a free license see this so click this link and scroll down and you can see the eligibility criterias and all so read this and you can click on apply now so that will open up the form you can fill this and you can get the free license for it okay so you can either use a University email or official documents something like that and you can apply it and you will get the license for the PHP stor I recommend using PHP stor since it has a lot of features by default so you don't have to install the plugins and all those things so out of the box PHP stor is a best IDE if you're going for PHP development so the next one is vs code so let's search for vs code and you can see Visual Studio code click this one and this is a free one okay so this is a free IDE so you can either go for PHP stor or Visual Studio code so in this video we'll be downloading visual Studio code so let's download visual studio code since most of the users will be going for visual studio code we're going to show this video in Visual Studio code itself okay so let's download it and install it click the exe file now you have to accept this agreement and click on next and this is the path of the installation click on next next okay you can add the path Etc so click on next itself okay and install so the visual studio code is installed properly now you can click on finish it will launch the visual studio code so you can see this is the IDE so you can customize it according to your wish okay so we are not going to do that right now so let's close this one okay now we have properly installed an ID so this this is the ID that we are going to use Visual Studio code okay so now we have to create a project okay so for that we can go to file here and open a folder click on open a folder now you have to select a location where you wish to place your project so for now we can go to download itself and let's create a new folder and name it my projects okay now you can open this select folder click on select folder okay and you can click on yes I trust okay and maximize the window so now we are inside Visual Studio code now we have to create a larel project so for that you can go to terminal here you can see on the menu bar we are having terminal and click on new terminal so you can see on the bottom the ter teral has opened so I will increase the font of this for you so control+ okay hope this is visible for you and here we can create a new larel project so for that we can use the command LEL so we have installed the LEL installer so we can use the command LEL LEL space new and then the project name so let's name something like my demo app and hit enter so you can see that it is showing an error here so this is because we are inside the visual studio code you simply have to restart your system and this will go away so let me just restart the system and come back so I have restarted the system and opened Visual Studio code so you can first of all try restarting the visual studio code instead of restarting the system and open the terminal okay I have restarted the system if restarting Visual Studio code doesn't work we can restart the system and try so let's open the terminal and type the command larel new and the app name my demo app and hit enter you can see that the larvel installation process has started and it is asking you to select a starter kit so since you are learning you can go for none so type none here hit enter and you can see it is asking to select a testing framework so type zero and hit enter we'll learn more about these on later part so simply type zero and hit enter now wait for larel to complete creating the project for you okay now you can see the application has successfully created and now it is asking you to select the database so for now we'll be going with mySQL okay you can choose the database according to your need since we are learning we are going with mySQL okay so let's type MySQL here and hit enter and that's all so now our application is created successfully okay so you can see inside the folder we are having a new folder my demo app and inside that we can see a lot of folders see so we'll be walking through all these folders and what all these mean later on so let's try running this application so so you can see that our application is inside this folder my demo app so let's change the directory in the terminal so let's scroll down let's so let's close the terminal here and open a new one okay and let's try running this application okay so for that we have to change the directory CD followed by the folder name my demo app and hit enter so now we are inside the folder of the project now we can run the project by typing PHP Artisan serve see we can type this command and hit enter now you can see the server is running on this port and this IP address okay so simply click on the control and you can click on this link okay using the mouse see and select [Music] Chrome if you go to the Chrome you can see our application has open so this is a default page that is created by larell so I will show you where you can see this so close this and go to resources this folder resources and open the folder views and you can see welcome. blade. PHP okay let's minimize the terminal okay and you can see this is the page so let's remove everything in this page CR a and hit backspace and save this file okay so now if you go to this page on the Chrome and reload this page you can see it is showing nothing so that's because we have removed everything okay and let's type High here something high and save it now we can refresh this page and you can see high on the top okay hope you can see it so that's it so here we can add anything and it will be visible on The View part okay and you can see routes and these are the routes that we will be creating for the application so later on I'll be walking you through everything in detail so mainly we are having routes views and uh inside the app you can see HTTP inside we are having controllers and also models okay so mainly we are having these four things later on we'll be walking you through everything in detail so hope you understand how to install and set up LEL on your Windows device so if you like this video give it a thumbs up and subscribe to this channel for more such videos
Info
Channel: Codes Easy
Views: 10,332
Rating: undefined out of 5
Keywords: codeseasy, laravel tutorial, laravel installation, learn laravel, how to install laravel, php framework, install laravel, laravel course, php laravel
Id: yFFXPAOvIic
Channel Id: undefined
Length: 17min 58sec (1078 seconds)
Published: Mon Jan 08 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.