mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-01 02:10:15 +00:00
🎨 feat(project-support): enhance project display with conditional rendering for payment status and update image validation
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user