Skip to content

Commit

Permalink
fixed delete button route issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanSenturk committed Oct 30, 2023
1 parent d0ad2bb commit f45ca23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/View/Components/DeleteButton.php
Expand Up @@ -240,7 +240,13 @@ protected function getModelTitle()
$page = '';

if (! empty($this->route)) {
$paths = explode('.', $this->route);
if (is_array($this->route)) {
$string = $this->route[0];
} else {
$string = $this->route;
}

$paths = explode('.', $string);

$page = $paths[0];
} elseif (! empty($this->url)) {
Expand Down

0 comments on commit f45ca23

Please sign in to comment.