Skip to content

Results for “migration”

5 prompts

Act as a senior Laravel developer. Laravel version: [version] Resource: [name and fields with types/rules] Relationships: [details] UI: [Blade / Inertia / API only] Generate: migration, model with fillable and casts, form request validation, resource controller, routes, policy for authorisation, views or API resources…

ChatGPT
Coding & Development

Laravel CRUD feature

Generate a complete Laravel CRUD feature: migration, model, controller, routes, validation and views.

0

Act as a senior Django developer. Django version: [version] Feature: [description] Models and fields: [details] Users and permissions: [details] Generate: models with Meta options and __str__, admin with list_display/filters/search, forms with validation, class-based views, URLs, templates outline, and tests. Explain…

ChatGPT
Coding & Development

Django model, admin and views

Create Django models, admin configuration, forms and views for a new feature.

0

Act as a backend developer. Framework/tool: [Laravel, Django, Rails, Prisma, Alembic, raw SQL] Database: [PostgreSQL/MySQL] Change needed: [e.g. add column, rename table, split a field] Table size: [rows] Write the up and down migration, any data backfill, how to deploy it safely without downtime (e.g. expand-and-cont…

ChatGPT
Coding & Development

Write a database migration

Create safe, reversible migrations for schema changes, including data backfills.

0

Act as a DevOps engineer. App: [language/framework and version] Services needed: [database, cache, queue] Ports: [list] Environment variables: [names only] Goal: [local dev / production] Create: 1. A multi-stage Dockerfile (small image, non-root user, cached dependencies) 2. A .dockerignore 3. docker-compose.yml with…

ChatGPT
Coding & Development

Dockerfile and docker-compose setup

Containerise your app with an optimised, secure Dockerfile and a docker-compose file for local development.

0

Convert the code below from [source language] to [target language]. Requirements: - Use idiomatic [target language] conventions, not a literal translation - Replace libraries with the standard or most popular equivalents in [target language] and name them - Keep the same behaviour, inputs and outputs - Add types where…

ChatGPT
Coding & Development

Convert code from one language to another

Translate code between languages using each language's idioms, libraries and conventions instead of a line-by-line copy.

0