🎨 feat(project-support): enhance project display with conditional rendering for payment status and update image validation

This commit is contained in:
fsociety
2024-10-25 15:44:47 +02:00
parent 4483d0d655
commit fad67686b2
2 changed files with 38 additions and 16 deletions

View File

@@ -52,9 +52,9 @@ on([
$save = function () {
$this->form->validate();
if ($this->image) {
if ($this->image && method_exists($this->image, 'temporaryUrl')) {
$this->validate([
'image' => 'image|max:1024',
'image' => 'nullable|image|max:1024',
]);
$this->projectProposal
->addMedia($this->image->getRealPath())