Skip to content

Commit

Permalink
#222 - cr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilpiech97 committed Apr 11, 2024
1 parent 1b2af49 commit 1e03a5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/Filament/Resources/ActivityResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public static function form(Form $form): Form
Forms\Components\DateTimePicker::make("published_at")
->format(DateFormats::DATE_DISPLAY)
->time(false)
->label("Data publikacji")
->required(),
->label("Data publikacji"),
Forms\Components\FileUpload::make("photo")
->label("Zdjęcie")
->required()
Expand Down
1 change: 1 addition & 0 deletions app/Models/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ class Activity extends Model
"subtitle" => "array",
"description" => "array",
"published" => "boolean",
"published_at" => "datetime",
];
}
2 changes: 1 addition & 1 deletion database/factories/ActivityFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function definition(): array
"description" => $this->translations($locales, $this->faker->paragraph),
"photo" => sprintf("%s/%s", Activity::PHOTOS_DIRECTORY, $this->faker->image("public/storage/activities", width: 240, height: 240, fullPath: false)),
"published" => $this->faker->boolean,
"published_at" => $this->faker->dateTime,
"published_at" => $this->faker->date,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up(): void
$table->json("subtitle");
$table->json("description");
$table->boolean("published")->default(false);
$table->timestamp("published_at");
$table->date("published_at")->nullable();
$table->timestamps();
});
}
Expand Down

0 comments on commit 1e03a5d

Please sign in to comment.