fix: adding ability to update artist bg

This commit is contained in:
2023-12-20 19:45:19 +00:00
parent 87198b46a5
commit a156a44130
13 changed files with 147 additions and 15 deletions

View File

@@ -36,6 +36,10 @@ class Avatar extends Component
Image::load($disk->path($avatar))
->manualCrop($this->width, $this->height, $this->x, $this->y)
->save();
Image::load($disk->path($avatar))
->width(350)
->height(350)
->save();
ImageOptimizer::optimize($disk->path($avatar));
auth()->user()->artists()->first()->update(compact('avatar'));
$this->avatar = null;