Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 228afe4

Browse files
committed
Append application name after page name in titles
1 parent aed92bf commit 228afe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
function extract_title(HtmlString $breadcrumbs, string $separator = ' » ')
1515
{
16-
return preg_replace('/[\n\r\s]+/', ' ', strip_tags(Str::replaceLast($separator, '', str_replace('</li>', $separator, $breadcrumbs))));
16+
return Str::afterLast(preg_replace('/[\n\r\s]+/', ' ', strip_tags(Str::replaceLast($separator, '', str_replace('</li>', $separator, $breadcrumbs)))), $separator)." {$separator} ".config('app.name');
1717
}
1818
}
1919

0 commit comments

Comments
 (0)