first commit

This commit is contained in:
yanwenwu
2019-12-22 09:37:52 +08:00
parent cf1dedabd4
commit b27ef2570a
359 changed files with 34726 additions and 758 deletions

View File

@@ -9,5 +9,5 @@ return [
/**
* set error page
*/
'error' => root_path('catchAdmin/index/view/') . 'error.html',
'error' => root_path('catch/index/view/') . 'error.html',
];

18
config/jwt.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
return [
'secret' => env('JWT_SECRET'),
//Asymmetric key
'public_key' => env('JWT_PUBLIC_KEY'),
'private_key' => env('JWT_PRIVATE_KEY'),
'password' => env('JWT_PASSWORD'),
//JWT time to live
'ttl' => env('JWT_TTL', 30 * 36000 * 24),
//Refresh time to live
'refresh_ttl' => env('JWT_REFRESH_TTL', 20160),
//JWT hashing algorithm
'algo' => env('JWT_ALGO', 'HS256'),
'blacklist_storage' => thans\jwt\provider\storage\Tp5::class,
];