fix: adding ability to update artist bg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user