-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.php
More file actions
32 lines (24 loc) · 875 Bytes
/
config.example.php
File metadata and controls
32 lines (24 loc) · 875 Bytes
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
<?php
use App\Middleware\AuthMiddleware;
use App\Middleware\CsrfMiddleware;
use App\Middleware\GuestMiddleware;
return [
'database' => [
'host' => 'localhost',
'dbname' => 'small_social',
'charset' => 'utf8mb4',
// When setting up a new environment, update these credentials
// to match your local or server database environment
'username' => 'root',
'password' => '',
],
// Set to true to automatically login as 'admin' in local development
'auto_login' => false,
'middleware' => [
'auth' => \App\Middleware\AuthMiddleware::class,
'guest' => \App\Middleware\GuestMiddleware::class,
'csrf' => \App\Middleware\CsrfMiddleware::class,
'admin' => \App\Middleware\AdminMiddleware::class,
'jwt' => \App\Middleware\JwtMiddleware::class,
]
];