Skip to content

Commit

Permalink
- cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EwelinaSkrzypacz committed Dec 10, 2024
1 parent 18e225f commit fab29b1
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 41 deletions.
12 changes: 6 additions & 6 deletions app/Filament/Resources/ContactFormResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@

class ContactFormResource extends Resource
{
protected static ?string $model = ContactForm::class;
protected static ?string $label = "wiadomość";
protected static ?string $pluralLabel = "Wiadomości";
protected static ?string $navigationIcon = "heroicon-o-envelope-open";
protected static bool $hasTitleCaseModelLabel = false;

public static function form(Form $form): Form
{
return $form
Expand Down Expand Up @@ -134,4 +128,10 @@ public static function canCreate(): bool
{
return false;
}

protected static ?string $model = ContactForm::class;
protected static ?string $label = "wiadomość";
protected static ?string $pluralLabel = "Wiadomości";
protected static ?string $navigationIcon = "heroicon-o-envelope-open";
protected static bool $hasTitleCaseModelLabel = false;
}
12 changes: 6 additions & 6 deletions app/Filament/Resources/NewsResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ class NewsResource extends Resource
{
use Translatable;

protected static ?string $model = News::class;
protected static ?string $label = "aktualność";
protected static ?string $pluralLabel = "Aktualności";
protected static ?string $navigationIcon = "heroicon-o-rectangle-stack";
protected static bool $hasTitleCaseModelLabel = false;

public static function form(Form $form): Form
{
return $form
Expand Down Expand Up @@ -161,4 +155,10 @@ public static function getTranslatableLocales(): array
{
return config("app.translatable_locales");
}

protected static ?string $model = News::class;
protected static ?string $label = "aktualność";
protected static ?string $pluralLabel = "Aktualności";
protected static ?string $navigationIcon = "heroicon-o-rectangle-stack";
protected static bool $hasTitleCaseModelLabel = false;
}
12 changes: 6 additions & 6 deletions app/Filament/Resources/ProjectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@

class ProjectResource extends Resource
{
protected static ?string $model = Project::class;
protected static ?string $label = "projekt";
protected static ?string $pluralLabel = "Projekty";
protected static ?string $navigationIcon = "heroicon-o-swatch";
protected static bool $hasTitleCaseModelLabel = false;

public static function form(Form $form): Form
{
return $form
Expand Down Expand Up @@ -120,6 +114,12 @@ public static function getPages(): array
];
}

protected static ?string $model = Project::class;
protected static ?string $label = "projekt";
protected static ?string $pluralLabel = "Projekty";
protected static ?string $navigationIcon = "heroicon-o-swatch";
protected static bool $hasTitleCaseModelLabel = false;

protected static function getTemplateOptions(): array
{
$files = scandir(resource_path("views/projects"));
Expand Down
12 changes: 6 additions & 6 deletions app/Filament/Resources/ReferenceResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@

class ReferenceResource extends Resource
{
protected static ?string $model = Reference::class;
protected static ?string $label = "referencję";
protected static ?string $pluralLabel = "Referencje";
protected static ?string $navigationIcon = "heroicon-o-hand-thumb-up";
protected static bool $hasTitleCaseModelLabel = false;

public static function form(Form $form): Form
{
return $form
Expand Down Expand Up @@ -113,4 +107,10 @@ public static function getPages(): array
"edit" => Pages\EditReferences::route("/{record}/edit"),
];
}

protected static ?string $model = Reference::class;
protected static ?string $label = "referencję";
protected static ?string $pluralLabel = "Referencje";
protected static ?string $navigationIcon = "heroicon-o-hand-thumb-up";
protected static bool $hasTitleCaseModelLabel = false;
}
10 changes: 5 additions & 5 deletions app/Filament/Resources/TagResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

class TagResource extends Resource
{
protected static ?string $model = Tag::class;
protected static ?string $label = "tag";
protected static ?string $pluralLabel = "Tagi";
protected static ?string $navigationIcon = "heroicon-o-rectangle-stack";

public static function form(Form $form): Form
{
return $form
Expand Down Expand Up @@ -72,4 +67,9 @@ public static function getPages(): array
"edit" => Pages\EditTag::route("/{record}/edit"),
];
}

protected static ?string $model = Tag::class;
protected static ?string $label = "tag";
protected static ?string $pluralLabel = "Tagi";
protected static ?string $navigationIcon = "heroicon-o-rectangle-stack";
}
12 changes: 6 additions & 6 deletions app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@

class UserResource extends Resource
{
protected static ?string $model = User::class;
protected static ?string $label = "użytkownika";
protected static ?string $pluralLabel = "Użytkownicy";
protected static ?string $navigationIcon = "heroicon-o-user-group";
protected static bool $hasTitleCaseModelLabel = false;

public static function form(Form $form): Form
{
/** @var User $authUser */
Expand Down Expand Up @@ -118,4 +112,10 @@ public static function canDelete(Model $record): bool

return $user->isAdmin() && $record->id !== $user->id;
}

protected static ?string $model = User::class;
protected static ?string $label = "użytkownika";
protected static ?string $pluralLabel = "Użytkownicy";
protected static ?string $navigationIcon = "heroicon-o-user-group";
protected static bool $hasTitleCaseModelLabel = false;
}
10 changes: 5 additions & 5 deletions app/Models/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ class News extends Model
"tags" => "array",
];

public function getRelatedTagModels(): Collection
{
return Tag::query()->whereIn("id", $this->tags)->get();
}

public static function boot(): void
{
parent::boot();
static::observe(NewsObserver::class);
}

public function getRelatedTagModels(): Collection
{
return Tag::query()->whereIn("id", $this->tags)->get();
}
}
2 changes: 1 addition & 1 deletion config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"password" => env("MAIL_PASSWORD"),
"timeout" => null,
"local_domain" => env("MAIL_EHLO_DOMAIN"),
'scheme' => env('MAIL_SCHEME', 'smtp'),
"scheme" => env("MAIL_SCHEME", "smtp"),
],
"log" => [
"transport" => "log",
Expand Down

0 comments on commit fab29b1

Please sign in to comment.