voting added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-11 11:22:15 +01:00
parent 79b0f44143
commit 482470acdc
3 changed files with 15 additions and 7 deletions

View File

@@ -55,6 +55,12 @@ class ProjectProposalForm extends Component
$this->validate();
$this->projectProposal->save();
if ($this->image) {
$this->projectProposal->addMedia($this->image)
->usingFileName(md5($this->image->getClientOriginalName()).'.'.$this->image->getClientOriginalExtension())
->toMediaCollection('main');
}
return redirect($this->fromUrl);
}