How To Install Laravel For The First Time

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign [Music] we'll be seeing how to install and set up vs code composer and Sam on your device so let's start with downloading the Sam so you can see I have opened the website apachefriends.org you can simply search Sam on Google and you can get this website now click the download option here Sam for Windows and it will start downloading now you have to come to the composer getcomposer.org and you have to download the composer you can simply search composer on Google and get to this website I will also give the link for all this in the description so you can check that out so let's click on download and here you can see composer setup.exe so click this link and the download will start now that's it so we have also downloaded the composer so now we have downloaded composer and samp now let's download vs code so you can simply come to the website code.visualstudio.com you can also search vs code and get to this website and click download for Windows now this will start the download for Windows so I have already downloaded it so I'm canceling it right now so you have to download all these three you can also use PHP storm if you wish to because the PHP storm is having a license you have to purchase it or you can sign up for student version if you have an email or ID something you can use that okay I prefer using PHP stream since it's easy for coding in PHP but in this video we'll be seeing how to set up using vs code because it's more accessible for all okay so let's close this website so now we have downloaded Sam vs code and composer now we have to install them so let's start by installing the samp simply double click on the samp exe file so here you can see a warning you can simply click ok and you can click next and click next here you can see the folder to which the Sam will be installed you can see by default it's showing C samp so it will be installed to the Sam folder inside C drive so let's keep it the same and click next now here you can simply click next and click next now you can see the installation for sample start so after this the sum will be installed on your system so after installing you can see the screen so here you can simply click finish and it will open Sam so you can see the samp is opened so we have samp installed and ready so we can minimize this so now we have installed the samp so let's start installing the composer.exe so double click the exe file you can click run here you can select the install for all users so here you can simply click next and here you can see the composer have detected the PHP installation so here you can see we have installed inside samp PHP and we are having the php.exe so here you can see it is asking you to add PHP to the path so if you haven't added PHP to your path you can simply check this option and click next I have already added PHP to my path so I am not checking this option if you haven't added PHP to your path and if you are not aware if you have added it or not so check this option and click next here you can simply click next now you can see it is asking you to install so here you can simply click install so you can see the composer have installed so click next and you can see finish so we have install composer now so we have completed installing sap and then we have installed the composer and we have also added PHP to our path okay so we have done three tasks now we have to install the vs code so simply click on vs code and it will ask you to run click run so here you have to accept the agreement and click next so simply click next here you can simply click install now the vs code will be installed on your system so you can click finish and this will open the vs code here you can minimize the vs code and go to lateral documentation so here you can see larval.com inside the website larval.com we can see get started click on get started now inside the installation scroll down here you can see composer Global require larval slash installer so we are going to install the larval installer globally on our system okay so we have composer installed and ready so you can run this command we have installed composer in order to run this command Okay so hope you understand so you can copy this and here we have to open a folder so for that let's create a folder and open it inside vs code go to file you can see open a folder so here you can see I have selected a folder so you can select this folder and it will open inside vs code now we can go to the terminal you can go to the top you can see terminal and click new terminal now the terminal will open on the bottom so here we can run the command so for that go to the documentation and copy this command paste the command here and click enter so you can run this command either on the command prompt or we can run it here like this since I already have larval installer installed you can see it is saying that it is already installed and nothing is there to update or remove okay so you'll be having a different message so that's all so now we have added larval installer to our system okay so this is added globally so you can access the command laravel from anywhere okay so now let's try creating a new app so for that you have to use the command laravel new followed by the name of the app so laravel new and when you type the name of the application you should not use any space so it will be like now you can hit the enter so this will create the app so you can see it is creating the larval project so you can see a folder has been created with the name my first app if you open this you can see many other folders and files so wait for the installation to complete okay now our project has been created successfully now you can close the terminal now we can see how the app is you can go to the app folder and you can see the folder you can see HTTP folder so inside this we are having our controllers okay we are also having our models inside the folder app okay so you can see models now we can also see the resources views and you can see the routes here okay web.php okay so let's try running this I will create a course on larval later on so right now let's try running this for that you have to open the terminal itself here you have to type PHP Artisan server so here you can see we are accessing PHP so you have to add PHP to your environment variable while we are installing the composer you might remember that we have added the path of PHP so that's the step so because of that we can access PHP from anywhere okay so you have to add the path of PHP so PHP Artisan serve okay now you can hit enter okay you can see that the Artisan file is not found because we are not inside the folder my first app okay for that you have to go to CD my underscore first app now you can hit enter now here you can type the command PHP Artisan serve okay now you can see the server is running and you are having the link so you can open this by clicking Ctrl plus clicking the mouse here okay so here you can see the larval application has opened so that's all so now we have installed the larval and seen how to run the app so that's all for this video hope you understand how to install larval 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: 312,777
Rating: undefined out of 5
Keywords: codeseasy, install laravel, laravel installation, laravel tutorial, learn laravel, laravel php, laravel framework, php laravel, php framework, laravel 9, laravel introduction, laravel for beginners, install laravel 9, installing laravel, install laravel on windows 11, install laravel 9 on windows 10, install laravel in visual studio code, install laravel on windows, install laravel from scratch, laravel tutorial for beginners, laravel 9 tutorial, laravel installer, laravel
Id: 2qgS_MCvDfk
Channel Id: undefined
Length: 9min 57sec (597 seconds)
Published: Wed Nov 30 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.