laravel installation steps on windows code example

Example 1: install laravel

composer create-project --prefer-dist laravel/laravel blog "6.*"

Example 2: laravel installation

composer create-project --prefer-dist laravel/laravel blog

Example 3: install laravel

laravel install on windows
-----------------------------------
1-composer install
https://getcomposer.org/download/
2-laravel install using composer
composer global require laravel/installer
3-create new project
laravel new blog
cd blog 
4-serve project to localhost
php artisan serve

Example 4: setting up environment for laravel windows

'mysql' => [
    'read' => [
        'host' => [
            '192.168.1.1',
            '196.168.1.2',
        ],
    ],
    'write' => [
        'host' => [
            '196.168.1.3',
         ],
    ],
    'sticky'    => true,
    'driver'    => 'mysql',
    'database'  => 'laravel',
    'username'  => 'root',
    'password'  => 'THE ONE YOU CREATED THE USER WITH',
    'charset'   => 'utf8mb4',
    'collation' => 'utf8mb4_unicode_ci',
    'prefix'    => '',
],

Tags:

Php Example