filmov
tv
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:-
Make sure PHP version must be greater than or equal to 8.1
You can also install Wamp from the below link:-
Follow the below tutorial for more details to install Xampp for Laravel 10:
2) Install Composer:-
A composer is a tool for dependency management in PHP. We can install composer from the below link:-
or directly download Composer Setup for Windows:-
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:
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:-
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:-
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:-
"laravel/framework": "10.0.*",
b) Run "composer update" command :-
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 :)
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:-
Make sure PHP version must be greater than or equal to 8.1
You can also install Wamp from the below link:-
Follow the below tutorial for more details to install Xampp for Laravel 10:
2) Install Composer:-
A composer is a tool for dependency management in PHP. We can install composer from the below link:-
or directly download Composer Setup for Windows:-
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:
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:-
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:-
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:-
"laravel/framework": "10.0.*",
b) Run "composer update" command :-
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 :)
Комментарии