filmov
tv
Install Laravel 11 on Windows from scratch | Laravel 11 Installation Steps | Install via Composer
Показать описание
Recently, the Laravel 11 version has been launched. In this video, we will take some simple steps to install Laravel 11. We need to make sure that our server meets the Laravel 11 requirements.
To Install Laravel 11, you can install Xampp or Wamp then Composer and finally install Laravel 11.
Steps to install Laravel 11 are as below:
1) Install Xampp/Wamp:-
You can install the latest Xampp as per your Operating System from the below link:-
Make sure the PHP version must be greater than or equal to 8.2
You can also install Wamp from the below link:-
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.
3) Install Laravel 11
After installing Xampp latest version with the latest PHP version and Composer as well, now we are ready to install the Laravel 11 project.
Simply open the below Laravel 11 link and follow the instructions:-
Two ways to install Laravel 11:-
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 11 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 11 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 the below paths to Windows PATH environment variables: G:\xampp\mysql\bin;G:\xampp\php;
(In my case, Xampp is in G drive so I gave G path, you can give your drive where your Xampp is installed)
Now Laravel 11 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 the Laravel version by giving the below command:-
php artisan --version
You can see it will show Laravel Framework 11.0.0. It means the Laravel 11 version has been installed successfully.
If in case, it shows Laravel 10.0 version or your old version, then do the below steps to update it to Laravel 11.0:-
"laravel/framework": "11.0.*",
b) Run "composer update" command :-
c) Run "php artisan --version" command :-
Now you can see; that it must show Laravel Framework 11.0.0 when you check the Laravel version.
6) Encryption Key Issue (if any)
If an encryption Key issue comes up, then run the below command:-
php artisan key:generate
And then restart Laravel server again means closing Git Bash and running it again with "php artisan serve" command.
Thanks for watching :)
Popular Stack Developers Series that can help you:-
►Join this channel to get the complete source code of all series:
#laravel11 #laravel10tutorial #laravel
To Install Laravel 11, you can install Xampp or Wamp then Composer and finally install Laravel 11.
Steps to install Laravel 11 are as below:
1) Install Xampp/Wamp:-
You can install the latest Xampp as per your Operating System from the below link:-
Make sure the PHP version must be greater than or equal to 8.2
You can also install Wamp from the below link:-
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.
3) Install Laravel 11
After installing Xampp latest version with the latest PHP version and Composer as well, now we are ready to install the Laravel 11 project.
Simply open the below Laravel 11 link and follow the instructions:-
Two ways to install Laravel 11:-
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 11 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 11 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 the below paths to Windows PATH environment variables: G:\xampp\mysql\bin;G:\xampp\php;
(In my case, Xampp is in G drive so I gave G path, you can give your drive where your Xampp is installed)
Now Laravel 11 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 the Laravel version by giving the below command:-
php artisan --version
You can see it will show Laravel Framework 11.0.0. It means the Laravel 11 version has been installed successfully.
If in case, it shows Laravel 10.0 version or your old version, then do the below steps to update it to Laravel 11.0:-
"laravel/framework": "11.0.*",
b) Run "composer update" command :-
c) Run "php artisan --version" command :-
Now you can see; that it must show Laravel Framework 11.0.0 when you check the Laravel version.
6) Encryption Key Issue (if any)
If an encryption Key issue comes up, then run the below command:-
php artisan key:generate
And then restart Laravel server again means closing Git Bash and running it again with "php artisan serve" command.
Thanks for watching :)
Popular Stack Developers Series that can help you:-
►Join this channel to get the complete source code of all series:
#laravel11 #laravel10tutorial #laravel
Комментарии