Customize button route add alias for module

This commit is contained in:
Cüneyt Şentürk 2021-01-10 22:04:22 +03:00
parent 0c31fd8c9d
commit 8bcb173a92

View File

@ -761,7 +761,15 @@ abstract class DocumentShow extends Base
return $routeButtonCustomize;
}
$route = 'settings.' . $type . '.edit';
$route = '';
$alias = config('type.' . $type . '.alias');
if (!empty($alias)) {
$route .= $alias . '.';
}
$route .= 'settings.' . $type . '.edit';
try {
route($route);