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\UpdateApiUserPasteisModeRequest;
use App\Http\Resources\CurrentUserResource;
use App\Models\User;
use App\Queries\NotificationGroupsQuery;
use Illuminate\Container\Attributes\CurrentUser;
final readonly class UserPasteisModeController
{
/**
* Turns pastéis mode on or off, as the switch in the web's settings does, and answers as GET /api/v1/me does.
*/
public function update(UpdateApiUserPasteisModeRequest $request, #[CurrentUser] User $user, UpdateUserPasteisMode $action, NotificationGroupsQuery $notifications): CurrentUserResource