Install Laravel 10.0 from scratch | Install Laravel 10 on Windows 10 / 11 | Laravel10 Installation

Recently, the Laravel 10 version has been launched. In this video, we will take some simple steps to install Laravel 10 on Windows. Recommend Windows OS are Windows 8, Windows 10 and Windows 11. Also, We need to make sure that our server meets the Laravel 10 requirements.
To Install Laravel 10, you can install Xampp then Composer and finally install Laravel 10.
1) Install Xampp/Wamp:-
You can install the latest Xampp as per your Operating System from the below link:-
www.apachefriends.org/downloa...
Make sure PHP version must be greater than or equal to 8.1
You can also install Wamp from the below link:-
www.wampserver.com/en/
Follow the below tutorial for more details to install Xampp for Laravel 10:
• Install Xampp | Upgrad... (for Windows)
2) Install Composer:-
A composer is a tool for dependency management in PHP. We can install composer from the below link:-
getcomposer.org/download/
or directly download Composer Setup for Windows:-
getcomposer.org/Composer-Setu...
After downloading the setup, just install it in your Xampp folder at path /xampp/php/ and after installation, you can check in Shell in your Xampp Control Panel if you are using Xampp. Type "composer" and enter, "Composer" related commands you can able to see.
Follow the below tutorial for more details to install Composer for Laravel 10:
• Ready for Laravel 10? ... (for Windows)
3) Install Laravel 10
After installing Xampp latest version with the latest PHP version and Composer as well, now we are ready to install the Laravel 10 project.
Simply open below Laravel 10 link and follow instructions:-
laravel.com/docs/10.x#install...
2 ways to install Laravel 10:-
1) via Composer Create-Project :-
composer create-project --prefer-dist laravel/laravel blog
2) via Laravel Installer:-
First, download the Laravel installer using Composer:
composer global require laravel/installer
And then run the below command to install the Laravel 10 project:-
laravel new project_name
You can install Git Bash as well to install and run Laravel by following the below link:-
• Laravel Tutorial : Use...
If in case "Laravel PHP Command Not Found" error comes while installing Laravel 10 with "laravel new project_name" command then try to set the environment variables like below:-
i) Click on the Windows button on the bottom left and go to System
ii) Click the Advanced System Settings link in the left column
iii) In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab.
iv) In the Environment Variables window, highlight the Path variable in the "System variables" section and click the Edit button. Add the path lines with the paths you want the computer to access.
v) Then add below paths to windows PATH environment variables: ;E:\xampp\mysql\bin;E:\xampp\php;
(In my case, Xampp is in E drive so I given E path, you can give your own drive where your Xampp installed)
Now Laravel 10 must be installed with "laravel new project_name" command so exit current Git Bash and go to your project folder and right-click on it to run again.
4) Run Laravel by giving the below command in the project folder:-
php artisan serve
5) Check Laravel version by giving the below command:-
php artisan --version
You can see it will show Laravel Framework 10.0.0. It means Laravel 10 version has been installed successfully.
If in case, it shows Laravel 9.0 version or your old version, then do the below steps to update it to Laravel 10.0:-
a) Update composer.json file :-
Update composer.json file located at the root of your project to update "laravel framework from 9.0 to 10.0
"laravel/framework": "10.0.*",
b) Run "composer update" command :-
After updating composer.json, you have to run the "composer update" command to update Laravel 9.0 to 10.0
c) Run "php artisan -version" command :
Now you can see; it must show Laravel Framework 10.0.0 when you check the Laravel version.
6) Encryption Key Issue (if any)
If an encryption Key issue comes, then run the below command:-
php artisan key:generate
And then restart laravel server again means close Git Bash and run it again with "php artisan serve" command.
Thanks for watching :)

Пікірлер: 27

  • @StackDevelopers
    @StackDevelopers Жыл бұрын

    ►Laravel 10 Tutorial: kzread.info/head/PLLUtELdNs2ZbX7T5wgbBR9wUXt5YPG-hm

  • @swarnalisaha7096
    @swarnalisaha7096 Жыл бұрын

    This video was really very helpful... Thank you so much☺

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    You are most welcome 🙏 You can also watch Laravel 10 series in which we have first created common Admin Panel that is required for any Laravel website, later on will make E-commerce Website in Laravel 10: kzread.info/head/PLLUtELdNs2ZbX7T5wgbBR9wUXt5YPG-hm

  • @AsmaKhan-qf6gd
    @AsmaKhan-qf6gd Жыл бұрын

    thank so much sir it was really so much helpful

  • @StackDevelopers

    @StackDevelopers

    11 ай бұрын

    You are most welcome 🙂

  • @gentilleantonio4086
    @gentilleantonio4086 Жыл бұрын

    thanks for this video , helpful

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    You are most welcome

  • @toxic-0005
    @toxic-0005 Жыл бұрын

    Very nice tutorial,,,, it was very helpful for me

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    Thank you so much.. You can also follow and bookmark below Laravel 10 playlist: kzread.info/head/PLLUtELdNs2ZbX7T5wgbBR9wUXt5YPG-hm

  • @saifulislam2012
    @saifulislam2012 Жыл бұрын

    thank you so much for shear this information

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    My pleasure

  • @samiurrahman8913
    @samiurrahman891311 ай бұрын

    sir thank you so much love from bd 🥰

  • @StackDevelopers

    @StackDevelopers

    11 ай бұрын

    Most welcome 😍

  • @DavidAshby1
    @DavidAshby1 Жыл бұрын

    Right abround 10:26 the audio goes, can't hear your instructions. Everything was working right up until the # composer clear-cache command. I entered the same and I didn't get any response. It just went to next line waiting for me to enter a command. I tried entering # composer create-project laravel laravel10 and again, no response. Where do I go from here? Thanks

  • @DavidAshby1

    @DavidAshby1

    Жыл бұрын

    After looking at the documentation I entered the command composer global require laravel/installer which installed it, entered the # composer create-project laravel/laravel laravel10 line and was advised application already exists, so it looks like everything working, at the moment

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    Have you enabled your zip extension in the PHP.ini file as I have shown in the video? If enabled then just start your Xampp Server again and run once "composer clear-cache command" and after that install Laravel 10 with below command: composer create-project laravel/laravel project-name Let me know if you face any issues..

  • @sanad4790
    @sanad47909 ай бұрын

    very good !

  • @StackDevelopers

    @StackDevelopers

    9 ай бұрын

    Thank you

  • @user-bu5gs4ge8g
    @user-bu5gs4ge8g Жыл бұрын

    After installing Laravel 10, the file size is 456 MB. Will this have any effect on the speed of the website or is the 456 MB size really correct? Because earlier Laravel projects were 15MB to 14MB in size. Let me explain this pls.

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    First let me know that your Laravel 10 is working fine? If yes, then let me know your vendor folder size. Have you installed any additional packages along with laravel 10 installation?

  • @user-ve6db3ml5g
    @user-ve6db3ml5g Жыл бұрын

    非常好,very good!

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    Thank you so much 😊

  • @hubesh716
    @hubesh716 Жыл бұрын

    what type of project we build in Laravel 10

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    First we are going to create basic admin panel in Laravel 10 that will work for all kind of websites..

  • @hubesh716
    @hubesh716 Жыл бұрын

    Sir using windows instead of Mac

  • @StackDevelopers

    @StackDevelopers

    Жыл бұрын

    Yes just providing instructions for my windows users

  • @debatemaster402
    @debatemaster402 Жыл бұрын

    TUTORIAL ETNA CRISTIAL CLEAR DO KI ,4 LOG THANKS BOLE COMMENT ME