改进 隐藏 URL

This commit is contained in:
iVampireSP.com 2023-01-21 22:19:04 +08:00
parent d82f8049fe
commit 925ec29b1b
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class ModuleController extends Controller
{
public function index()
{
$modules = (new Module)->all()->makeVisible('api_token');
$modules = (new Module)->all()->makeVisible(['api_token', 'url']);
return $this->success($modules);
}

View File

@ -32,7 +32,8 @@ class Module extends Authenticatable
protected $hidden = [
'api_token',
'wecom_key',
'balance'
'balance',
'url'
];
protected $casts = [