You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -8,8 +8,14 @@ trait TranslatableResource
|
||||
{
|
||||
public static function getNavigationGroup(): ?string
|
||||
{
|
||||
$group = property_exists(static::class, 'navigationGroup') ? static::$navigationGroup : null;
|
||||
$groupStr = is_string($group) ? $group : ($group instanceof \UnitEnum ? $group->name : '');
|
||||
$vars = get_class_vars(static::class);
|
||||
$group = $vars['navigationGroup'] ?? null;
|
||||
$groupStr = '';
|
||||
if ($group instanceof \UnitEnum) {
|
||||
$groupStr = $group->name;
|
||||
} elseif (is_string($group)) {
|
||||
$groupStr = $group;
|
||||
}
|
||||
return __(
|
||||
sprintf('filament::resources.navigations.%s', $groupStr),
|
||||
);
|
||||
@@ -17,8 +23,14 @@ trait TranslatableResource
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
$identifier = property_exists(static::class, 'translateIdentifier') ? static::$translateIdentifier : '';
|
||||
$identifierStr = is_string($identifier) ? $identifier : ($identifier instanceof \UnitEnum ? $identifier->name : '');
|
||||
$vars = get_class_vars(static::class);
|
||||
$identifier = $vars['translateIdentifier'] ?? null;
|
||||
$identifierStr = '';
|
||||
if ($identifier instanceof \UnitEnum) {
|
||||
$identifierStr = $identifier->name;
|
||||
} elseif (is_string($identifier)) {
|
||||
$identifierStr = $identifier;
|
||||
}
|
||||
return __(sprintf(
|
||||
Str::endsWith(static::class, 'RelationManager')
|
||||
? 'filament::resources.resources.%s.navigation_label'
|
||||
@@ -29,8 +41,14 @@ trait TranslatableResource
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
$identifier = property_exists(static::class, 'translateIdentifier') ? static::$translateIdentifier : '';
|
||||
$identifierStr = is_string($identifier) ? $identifier : ($identifier instanceof \UnitEnum ? $identifier->name : '');
|
||||
$vars = get_class_vars(static::class);
|
||||
$identifier = $vars['translateIdentifier'] ?? null;
|
||||
$identifierStr = '';
|
||||
if ($identifier instanceof \UnitEnum) {
|
||||
$identifierStr = $identifier->name;
|
||||
} elseif (is_string($identifier)) {
|
||||
$identifierStr = $identifier;
|
||||
}
|
||||
return __(
|
||||
sprintf('filament::resources.resources.%s.navigation_label', $identifierStr),
|
||||
);
|
||||
@@ -38,8 +56,14 @@ trait TranslatableResource
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
$identifier = property_exists(static::class, 'translateIdentifier') ? static::$translateIdentifier : '';
|
||||
$identifierStr = is_string($identifier) ? $identifier : ($identifier instanceof \UnitEnum ? $identifier->name : '');
|
||||
$vars = get_class_vars(static::class);
|
||||
$identifier = $vars['translateIdentifier'] ?? null;
|
||||
$identifierStr = '';
|
||||
if ($identifier instanceof \UnitEnum) {
|
||||
$identifierStr = $identifier->name;
|
||||
} elseif (is_string($identifier)) {
|
||||
$identifierStr = $identifier;
|
||||
}
|
||||
return __(
|
||||
sprintf('filament::resources.resources.%s.label', $identifierStr),
|
||||
);
|
||||
|
||||
@@ -6,9 +6,8 @@ use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class UserFactory extends Factory<User>
|
||||
class UserFactory extends Factory
|
||||
{
|
||||
/** @var class-string<User> */
|
||||
protected $model = User::class;
|
||||
|
||||
public function definition(): array
|
||||
|
||||
@@ -16,9 +16,12 @@ parameters:
|
||||
- bootstrap
|
||||
- storage
|
||||
- vendor
|
||||
- database/seeders/WebsiteArticleSeeder.php
|
||||
|
||||
ignoreErrors:
|
||||
- '#PHPDoc tag @var#'
|
||||
- '#Unsafe usage of new static#'
|
||||
- '#uses generic trait .*HasFactory but does not specify its types#'
|
||||
- '#extends generic class .*Factory but does not specify its types#'
|
||||
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
|
||||
@@ -67,3 +67,8 @@
|
||||
[2026-01-19 22:12:15] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:18:51] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:18:53] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:23:18] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:23:18] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:24:30] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:24:30] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
[2026-01-19 22:25:56] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||
|
||||
Reference in New Issue
Block a user