<?php

namespace App\Master\Http\Controllers;

use App\Http\Controllers\Controller;
use App\Http\Requests\ProfilePhotoRequest;

class UploadProfilePhotoController extends Controller
{
    /**
     * Update profile photo for current user session.
     *
     * @param ProfilePhotoRequest $request
     */
    public function update(ProfilePhotoRequest $request)
    {
        $request->user()->updateProfilePhoto($request->file('photo'));
    }
}
