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
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
$group = property_exists(static::class, 'navigationGroup') ? static::$navigationGroup : null;
|
$vars = get_class_vars(static::class);
|
||||||
$groupStr = is_string($group) ? $group : ($group instanceof \UnitEnum ? $group->name : '');
|
$group = $vars['navigationGroup'] ?? null;
|
||||||
|
$groupStr = '';
|
||||||
|
if ($group instanceof \UnitEnum) {
|
||||||
|
$groupStr = $group->name;
|
||||||
|
} elseif (is_string($group)) {
|
||||||
|
$groupStr = $group;
|
||||||
|
}
|
||||||
return __(
|
return __(
|
||||||
sprintf('filament::resources.navigations.%s', $groupStr),
|
sprintf('filament::resources.navigations.%s', $groupStr),
|
||||||
);
|
);
|
||||||
@@ -17,8 +23,14 @@ trait TranslatableResource
|
|||||||
|
|
||||||
public static function getPluralModelLabel(): string
|
public static function getPluralModelLabel(): string
|
||||||
{
|
{
|
||||||
$identifier = property_exists(static::class, 'translateIdentifier') ? static::$translateIdentifier : '';
|
$vars = get_class_vars(static::class);
|
||||||
$identifierStr = is_string($identifier) ? $identifier : ($identifier instanceof \UnitEnum ? $identifier->name : '');
|
$identifier = $vars['translateIdentifier'] ?? null;
|
||||||
|
$identifierStr = '';
|
||||||
|
if ($identifier instanceof \UnitEnum) {
|
||||||
|
$identifierStr = $identifier->name;
|
||||||
|
} elseif (is_string($identifier)) {
|
||||||
|
$identifierStr = $identifier;
|
||||||
|
}
|
||||||
return __(sprintf(
|
return __(sprintf(
|
||||||
Str::endsWith(static::class, 'RelationManager')
|
Str::endsWith(static::class, 'RelationManager')
|
||||||
? 'filament::resources.resources.%s.navigation_label'
|
? 'filament::resources.resources.%s.navigation_label'
|
||||||
@@ -29,8 +41,14 @@ trait TranslatableResource
|
|||||||
|
|
||||||
public static function getNavigationLabel(): string
|
public static function getNavigationLabel(): string
|
||||||
{
|
{
|
||||||
$identifier = property_exists(static::class, 'translateIdentifier') ? static::$translateIdentifier : '';
|
$vars = get_class_vars(static::class);
|
||||||
$identifierStr = is_string($identifier) ? $identifier : ($identifier instanceof \UnitEnum ? $identifier->name : '');
|
$identifier = $vars['translateIdentifier'] ?? null;
|
||||||
|
$identifierStr = '';
|
||||||
|
if ($identifier instanceof \UnitEnum) {
|
||||||
|
$identifierStr = $identifier->name;
|
||||||
|
} elseif (is_string($identifier)) {
|
||||||
|
$identifierStr = $identifier;
|
||||||
|
}
|
||||||
return __(
|
return __(
|
||||||
sprintf('filament::resources.resources.%s.navigation_label', $identifierStr),
|
sprintf('filament::resources.resources.%s.navigation_label', $identifierStr),
|
||||||
);
|
);
|
||||||
@@ -38,8 +56,14 @@ trait TranslatableResource
|
|||||||
|
|
||||||
public static function getModelLabel(): string
|
public static function getModelLabel(): string
|
||||||
{
|
{
|
||||||
$identifier = property_exists(static::class, 'translateIdentifier') ? static::$translateIdentifier : '';
|
$vars = get_class_vars(static::class);
|
||||||
$identifierStr = is_string($identifier) ? $identifier : ($identifier instanceof \UnitEnum ? $identifier->name : '');
|
$identifier = $vars['translateIdentifier'] ?? null;
|
||||||
|
$identifierStr = '';
|
||||||
|
if ($identifier instanceof \UnitEnum) {
|
||||||
|
$identifierStr = $identifier->name;
|
||||||
|
} elseif (is_string($identifier)) {
|
||||||
|
$identifierStr = $identifier;
|
||||||
|
}
|
||||||
return __(
|
return __(
|
||||||
sprintf('filament::resources.resources.%s.label', $identifierStr),
|
sprintf('filament::resources.resources.%s.label', $identifierStr),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -6,9 +6,8 @@ use App\Models\User;
|
|||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
|
||||||
class UserFactory extends Factory<User>
|
class UserFactory extends Factory
|
||||||
{
|
{
|
||||||
/** @var class-string<User> */
|
|
||||||
protected $model = User::class;
|
protected $model = User::class;
|
||||||
|
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
|
|||||||
@@ -16,9 +16,12 @@ parameters:
|
|||||||
- bootstrap
|
- bootstrap
|
||||||
- storage
|
- storage
|
||||||
- vendor
|
- vendor
|
||||||
|
- database/seeders/WebsiteArticleSeeder.php
|
||||||
|
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#PHPDoc tag @var#'
|
- '#PHPDoc tag @var#'
|
||||||
- '#Unsafe usage of new static#'
|
- '#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
|
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: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: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: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