Skip to content

Instantly share code, notes, and snippets.

@Convly
Convly / strapi-content-api.ts
Last active October 27, 2025 00:06
PoC for dynamic content API response types
import type { Attribute, Common, Utils } from '@strapi/types';
type IDProperty = { id: number };
type InvalidKeys<TSchemaUID extends Common.UID.Schema> = Utils.Object.KeysBy<
Attribute.GetAll<TSchemaUID>,
Attribute.Private | Attribute.Password
>;
export type GetValues<TSchemaUID extends Common.UID.Schema> = {
@atomjoy
atomjoy / ResizeImage-InterventionImage-v3-Laravel.md
Last active December 9, 2025 12:50
Upload, Resize and Save images with Intervention Image v3 in Laravel Storage. Test UploadedFile::fake() with real image file.

Resize images with Intervention Image v3 in Laravel Storage

Upload, Resize and Save images with Intervention Image v3 in Laravel Storage. Test UploadedFile::fake() with real image file.

Upload form

<form action="/upload/avatar" method="post" enctype="multipart/form-data">
	@csrf
	<label>Image</label>