Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Mar 20, 2024
1 parent 1658921 commit 4553e27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Filament/Clusters/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ public static function getNavigationLabel(): string
return __('app.System_cluster');
}

public function getTitle(): string | Htmlable
{
return __('app.System_cluster');
}

public function getHeading(): string | Htmlable
{
return __('app.System_cluster');
}

public static function getClusterBreadcrumb(): ?string
{
return __('app.System_cluster');
Expand Down
5 changes: 5 additions & 0 deletions src/Models/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class Company extends Model implements HasAvatar, HasCurrentTenantLabel, HasName
use CompanyRelations;
use HasTranslations;

public function getTenantId(): ?string
{
return auth()->user()?->company_id;

Check failure on line 35 in src/Models/Company.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property Illuminate\Foundation\Auth\User::$company_id.
}

public array $translatable = ['name'];

public function saveCompanySettings(array $data): void
Expand Down

0 comments on commit 4553e27

Please sign in to comment.