You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use App\Http\Requests\UpdateApiUserAutomaticTranslationRequest;
use App\Http\Resources\CurrentUserResource;
use App\Models\User;
use App\Queries\NotificationGroupsQuery;
use Illuminate\Container\Attributes\CurrentUser;
final readonly class UserAutomaticTranslationController
{
/**
* Turns automatic translation on or off, as Settings does on the web, and answers as GET /api/v1/me does.
*/
public function update(UpdateApiUserAutomaticTranslationRequest $request, #[CurrentUser] User $user, UpdateUserAutomaticTranslation $action, NotificationGroupsQuery $notifications): CurrentUserResource