@RestController
@RequestMapping("/api/notifications")
public class NotificationController {
private final SseEmitterRegistry registry;
private final NotificationService service;
class ExportWriter
def initialize(export)
@export = export
end
def append(rows)
framework:
workflows:
order:
type: state_machine
marking_store:
type: method
@Entity
@Table(name = "idempotency_records",
uniqueConstraints = @UniqueConstraint(columnNames = "idempotency_key"))
public class IdempotencyRecord {
public enum Status { IN_PROGRESS, COMPLETED }
import { useEffect, useState } from 'react';
export function useLocalStorage<T>(
key: string,
initialValue: T
): [T, (value: T) => void] {
class Article < ApplicationRecord
has_many :taggings, dependent: :destroy
has_many :tags, through: :taggings
scope :published, -> { where.not(published_at: nil) }
<?php
namespace App\Jobs;
use App\Models\Invoice;
use App\Services\StripeGateway;
import { useState, useEffect, useCallback } from 'react';
export function useLocalStorage(key, initialValue) {
const readValue = useCallback(() => {
if (typeof window === 'undefined') return initialValue;
try {
<?php
declare(strict_types=1);
namespace App\Security;
package upload
import (
"errors"
"io"
"log"
<?php
namespace App\Http\Requests\Wizard;
use Illuminate\Foundation\Http\FormRequest;
<?php
namespace App\Models;
use App\Support\TransientUrl;
use Illuminate\Database\Eloquent\Model;