Review Checklist
When a pull request touches Linker, renderBlade or template attributes, tick each item.
Linker components
- [ ] New components are registered in
LinkerServiceProvider, with no duplicate alias - [ ] The class has
#[RequiresAuth](unless it's genuinely anonymous) - [ ] Every
#[Computable]method has#[Validate], listing only the keys it needs - [ ] Methods taking an id have
#[Authorize(..., Model::class, arg: '…')]or check a policy inside - [ ] Amounts, permissions and flow steps are computed by the server or read from server state, never trusted from the browser
- [ ] Stateless writes use transactions / unique constraints / idempotency
- [ ]
#[Computable(cache: true)]is only used for reads whose data depends on nothing but the user and arguments - [ ] No leftover
$this->dd()/dump() - [ ] The output of
php artisan linker:list --methodsis what you expect
Actions
- [ ] New actions are generated with
make:linker-actionand exist on both PHP and JS sides - [ ] Actions never execute arbitrary strings (no JS, HTML, or anything beyond selectors)
- [ ]
php artisan linker:listpasses
renderBlade
- [ ] The controller uses
CanRenderCallSafely, andrenderCallSafely()picks and validates params - [ ] Fragments don't output user data with
{!! !!} - [ ] Fragments contain no inline
<script>with user data - [ ] Params sent are picked explicitly, not
state.all()
Templates
- [ ] Blocks using
data-state-*/ renderBlade are inside@renderObject - [ ] Allow lists are least privilege (read-only blocks don't get
state:write) - [ ]
@linkermount points are in an outer block that isn't re-rendered - [ ] Irreversible actions like delete use
data-linker-confirm-danger - [ ]
data-linker-ref-allowindom.repeatonly opens plain-textdata-*/aria-*attributes
Client state
- [ ] No passwords, tokens, amounts, permissions or
Fileobjects - [ ] The successful-save path runs
state.clear - [ ] Hand-written
subscribe()calls releaseoff()
Deployment
- [ ] All servers share the same
APP_KEYand the same Linker store - [ ] Production runs with
APP_DEBUG=false