Install Laravel 6 (dev) from scratch | Install Xampp/Wamp | Install Composer | Run Laravel 6

preview_player
Показать описание

Laravel is one of the most popular PHP framework to develop websites. And recently, Laravel 6 (dev) version has been launched before the full version of Laravel 6 so we will learn to install Laravel 6 (dev) in this video. We need to make sure that our server meets the Laravel 6 requirements.

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.2.0

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 6 (dev)

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

Simply open below Laravel 6 link and follow instructions :-

2 ways to install Laravel 6 :-

via Composer command :- composer create-project --prefer-dist laravel/laravel project_name (Not working at this time, Will work when full version launch)

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 6 (dev) 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 installed)

Now Laravel 6 (dev) 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 6.0-dev. It means Laravel 6 (Dev) version has been installed successfully.

If in case, it shows Laravel 5.8 version, then do below steps to update it to Laravel 6.0 (dev) :-

"laravel/framework": "6.0.*",

b) Run "composer update" command :-

c) Run "php artisan --version" command :-
Now you can see; it must show Laravel Framework 6.0-dev when you check Laravel version.

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.

Process of installing Laravel 6 full version is almost same. We will update with new video in case any difference.

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

laravel 6.0 php artisan make:auth command not working

parasnshah
Автор

para que funcione make:auth tienes que instalar via composer el paquete de autenticacion, ahora viene aparte

joeportilla
Автор

Большое спасибо! У Вас очень качественные уроки!

ВладИльин-жъ
Автор

23:05 why my browser can't open it?

umarfarooq
Автор

A new series of laravel or only installing guide?

MarcosEsqueda
Автор

mine even keeps getting errors like this
"Crafting application ...

In CurlFactory.php line 201:

rl / c / libcurl-errors.html)


new [--dev] [--auth] [-f | --force] [-] [<name>] "
, do you know how to handle it?

urangaka
Автор

Sir will you teach us Web services laravel & socket.io

MuhammadAdnan-gxrd
Автор

Hello Sir, please can you teach me how to make a dynamic dependent dropdown in laravel 6?

Secondly, please teach me how to get the product attributes in laravel 6? Thank you and I always love to follow your tutorials. God bless you... Can I get you whatsapp number?

henrynanabeyinagyapong