Config type add hide for Document item columns..

This commit is contained in:
Cüneyt Şentürk
2021-01-09 18:56:11 +03:00
parent 78996c35dd
commit 0a4e5cd0d6
5 changed files with 283 additions and 234 deletions

View File

@ -62,9 +62,7 @@ abstract class Document extends Component
return $route;
}
$prefix = config("type.' . $type . '.route.prefix");
$prefix = config("type.' . $type . '.route.prefix");
}
public function getPermissionFromConfig($type, $config_key, $action)
@ -96,4 +94,17 @@ abstract class Document extends Component
return $permission;
}
public function getHideFromConfig($type, $config_key)
{
$hide = false;
$hides = config('type.' . $type . '.hide');
if (!empty($hides) && (in_array($config_key, $hides))) {
$hide = true;
}
return $hide;
}
}