Customize button route add alias for module
This commit is contained in:
parent
0c31fd8c9d
commit
8bcb173a92
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user