Skip to content

Commit

Permalink
Update FilaChat.php
Browse files Browse the repository at this point in the history
Add method to register navigation depending on config value.
  • Loading branch information
maukoese authored Dec 20, 2024
1 parent a9e9096 commit 7d7c862
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Pages/FilaChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public static function getSlug(): string
return config('filachat.slug') . '/{id?}';
}

public static function shouldRegisterNavigation(): bool
{
return config('filachat.show_in_menu', true);
}

public static function getNavigationLabel(): string
{
return __(config('filachat.navigation_label'));
Expand Down

0 comments on commit 7d7c862

Please sign in to comment.