Laravel 6 Installation Step By Step (With Connection)
Laravel Requirements
- Xampp / Wamp / PHP Install with MySQL (PHP >= 7.1.3)
- Composer Software
- Browser (example Chrome)
- 4. Code Editor (Sublime Software)
Step 1. Xampp / Wamp / PHP Install with MySQL (PHP >= 7.1.3)
A.Xampp Download Link
B.Wamp Download Link
C.Php Download Link
with MySQL
There are above option select one software in A, B and C option
Step 2.Composer Software
Step 3.Code Editor (Sublime Software Option)
There are ready programming in Laravel and Installation
Step 4.Laravel Installation
By using composer
composer create-project --prefer-dist laravel/laravel YOUR PROJECT NAME
Above command can latest version of larval install in PC
This command on a terminal of Windows PC
Congratulation install your project
Check larval install open terminal of location install laravel project used command
php artisan serve
AND
Localhost/YOURPROJECT/public
See to your project running
Read Also Medium.com
composer create-project --prefer-dist laravel/laravel YOUR PROJECT NAME
php artisan serve
AND
Localhost/YOURPROJECT/public
See to your project running
Read Also Medium.com
For Connection With MySQl
.env File
Location\:- Root/.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=YOUR_DATABASE
DB_USERNAME=YOUR_USERNAME
DB_PASSWORD=YOUR_PASSWORD
Above Example
YOUR_DATABASE Given your database name
YOUR_USERNAME Given your username name in localhost username is "root"
YOUR_PASSWORD Given your password name in localhost username is ""(NULL)
Composer Command
php artisan migrate
OR
php artisan migrate:fresh (Already Used)
Done Connection With :Laravel
Thank you for sharing this informative post on laravel. I am new to laravel and this post will really help me.
ReplyDeleteLaravel Web Development Services