Laravel: add a safe database migration
New column/table with indexes, rollback and model updates.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Library / Coding & Technology / Frontend
Secure Livewire component with validation and tests.
Create a Livewire component for [feature, e.g. editable invoice line items]. - Validate all input with rules; never trust public properties. - Authorise actions (Policies) inside action methods. - Use wire:model.live only where instant feedback is needed. - Keep heavy queries in computed properties. - Add a Livewire test covering render, a successful action, and a validation failure.
Copies your prompt and opens the official site in a new tab. You may need to paste it yourself (Ctrl/⌘ + V). Nothing is sent to the AI by us.
Replace [bracketed] parts with your own details before sending. Want it tailored? Build a custom website & app development prompt.
A typical one-line request compared with this prompt. We only show sample responses where we've written an illustration.
Prompt
frontend
1 words · no role, context, format or constraints
Prompt
Create a Livewire component for [feature, e.g. editable invoice line items]. - Validate all input with rules; never trust public properties. - Authorise actions (Policies) inside action methods. - Use wire:model.live only where instant feedback is needed. - Keep heavy queries in computed properties. - Add a Livewire test covering render, a successful action, and a validation failure.
58 words · generated instantly from templates, no AI called
What we added
New column/table with indexes, rollback and model updates.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Eager loading fixes with proof.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Thin controllers with proper authorisation.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1