Install Laravel 5.8 from scratch | Install Xampp/Wamp | Install Composer | Run Laravel 5.8

preview_player
Показать описание
Laravel is one of the most popular PHP framework to develop websites. And recently, Laravel 5.8 has been launched so we will learn to install Laravel 5.8 in this video.

1) Install Xampp/Wamp :-

You can install latest Xampp as per your Operating System from below link :-

Make sure PHP version must be greater then or equal to 7.1.3

You can also install Wamp from below link :-

2) Install Composer :-

Composer is a tool for dependency management in PHP. We can install composer from below link :-

or directly download Composer Setup for Windows :-

After download 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 5.8

After installing Xampp latest version with latest PHP version and Composer as well, now we are ready to install Laravel 5.8 project.

Simply open below Laravel 5.8 link and follow instructions :-

2 ways to install Laravel 5.8 :-

via Composer command :- composer create-project --prefer-dist laravel/laravel project_name

via Laravel command :- laravel new project_name

You can install Git Bash as well to install and run Laravel by following below link :-

If in case "Laravel PHP Command Not Found" error comes while installing Laravel 5.8 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: ;F:\xampp\mysql\bin;F:\xampp\php;
(In my case, Xampp is in F drive so I given F path, you can give your own drive where your Xampp located)

Now Laravel 5.8 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 below command in project folder :-

php artisan serve

5) Check Laravel version by giving below command :-

php artisan --version

You can see it will show Laravel Framework 5.8.2. It means Laravel 5.8 has been installed successfully.

6) Encryption Key Issue (if any)

If such key issue comes, then run 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.

In next video, we will migrate our old Laravel 5.7 project to Laravel 5.8 so stay tune for next video..

Thanks for watching :)
Рекомендации по теме
Комментарии
Автор

The audio quality is very poor. Use a good quality mic for better audio.

sidingfog
Автор

Speak more loud, more clearly, pls .Its nothing understandable!More clearly sow where and what you click.PLS

petkopopov