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;
|
return $routeButtonCustomize;
|
||||||
}
|
}
|
||||||
|
|
||||||
$route = 'settings.' . $type . '.edit';
|
$route = '';
|
||||||
|
|
||||||
|
$alias = config('type.' . $type . '.alias');
|
||||||
|
|
||||||
|
if (!empty($alias)) {
|
||||||
|
$route .= $alias . '.';
|
||||||
|
}
|
||||||
|
|
||||||
|
$route .= 'settings.' . $type . '.edit';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
route($route);
|
route($route);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user