Laravel 6.x Setup
Laravel web development framework for PHP.
What makes laravel framework so the popular reason is, laravel framework provides a very flexible development environment for web developers.
They also have build-in packages which comes with default laravel once you install which makes it easier to use.
Let's check it out how to install laravel 6.x
Before installation please make sure you have these configurations otherwise it will not install properly.
- PHP >= 7.2.0
- BCMath PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
First you have to install composer If you didn't installed previously . Composer install
Via Composer
Run this command in your cmd or you can use git bash
composer create-project --prefer-dist laravel/laravel blog
If you want to install older version you can define the version while installing like
composer create-project --prefer-dist laravel/laravel blog "5.6.*"
I have used git bash to install.
Wait till it gets install required packages.
Once you have installed successfully navigate to install folder as we have created blog folder from there open cmd or gitbash and run the following command to start your server
php artisan serve
As you can see once you run the above command it will provide you URL. Open that URL.
Congratulation you have successfully install laravel.