setting up environment for laravel windows 10 code example
Example 1: 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' => '',
],
Example 2: setting up environment for laravel windows
NameVirtualHost *:80
<VirtualHost example.com:80>
DocumentRoot "C:\xampp\htdocs\example\public"
ServerName example.com
ServerAlias www.example.com
<Directory "c:/xampp/htdocs/example/public">
Require all granted
</Directory>
</VirtualHost>