改进 隐藏 URL
This commit is contained in:
parent
d82f8049fe
commit
925ec29b1b
@ -10,7 +10,7 @@ class ModuleController extends Controller
|
|||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$modules = (new Module)->all()->makeVisible('api_token');
|
$modules = (new Module)->all()->makeVisible(['api_token', 'url']);
|
||||||
|
|
||||||
return $this->success($modules);
|
return $this->success($modules);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,8 @@ class Module extends Authenticatable
|
|||||||
protected $hidden = [
|
protected $hidden = [
|
||||||
'api_token',
|
'api_token',
|
||||||
'wecom_key',
|
'wecom_key',
|
||||||
'balance'
|
'balance',
|
||||||
|
'url'
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
|
Loading…
Reference in New Issue
Block a user