mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
voting added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user