Added Profile PIC edition

( default gravatar )

Change-Id: Ib15b9c64ebfb8b21b52175d68e179de38146b765
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet
2020-08-03 18:03:41 -03:00
parent 5a260de3d3
commit 48dfbb1664
21 changed files with 1508 additions and 415 deletions

View File

@@ -13,6 +13,7 @@
**/
use App\Services\IBaseService;
use Auth\User;
use Illuminate\Http\UploadedFile;
use models\exceptions\EntityNotFoundException;
use models\exceptions\ValidationException;
/**
@@ -61,4 +62,14 @@ interface IUserService extends IBaseService
*/
public function saveProfileInfo($user_id, $show_pic, $show_full_name, $show_email, $identifier);
/**
* @param $user_id
* @param UploadedFile $file
* @param int $max_file_size
* @throws EntityNotFoundException
* @throws ValidationException
* @return User
*/
public function updateProfilePhoto($user_id, UploadedFile $file, $max_file_size = 10485760):User;
}