This repository has been archived by the owner on Apr 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.sample.php
58 lines (57 loc) · 1.63 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
return [
'host' => 'wandu.github.io',
'env' => 'develop',
'debug' => true,
'timezone' => 'UTC',
'caster' => [
'casters' => [
'datetime' => Wandu\Caster\Caster\CarbonCaster::class,
'date' => Wandu\Caster\Caster\DateCaster::class,
'time' => Wandu\Caster\Caster\TimeCaster::class,
],
],
'database' => [
'connections' => [
'default' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'allbus',
'username' => 'root',
'password' => '',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => 'local_',
],
],
'migrator' => [
'connection' => 'default',
'table' => 'migrations',
'path' => 'migrations',
],
],
'http' => [
'session' => [
'type' => 'file',
'path' => 'cache/sessions',
],
],
'view' => [
'path' => 'views',
'cache' => 'cache/views',
],
// for other service providers :-)
'monolog' => [
'monolog' => [
'path' => 'storage/log/wandu.log',
],
],
'neomerx' => [
'cors-psr7' => [
'server-origin' => 'http://wandu.github.io', // == 'http://' . config('host')
'allowed-origins' => [],
'allowed-methods' => ['GET' => true, 'POST' => true, 'PUT' => true, 'DELETE' => true, 'OPTIONS' => true],
'allowed-headers' => [],
],
],
];