Skip to content

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 --methods is what you expect

Actions ​

  • [ ] New actions are generated with make:linker-action and exist on both PHP and JS sides
  • [ ] Actions never execute arbitrary strings (no JS, HTML, or anything beyond selectors)
  • [ ] php artisan linker:list passes

renderBlade ​

  • [ ] The controller uses CanRenderCallSafely, and renderCallSafely() 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)
  • [ ] @linker mount points are in an outer block that isn't re-rendered
  • [ ] Irreversible actions like delete use data-linker-confirm-danger
  • [ ] data-linker-ref-allow in dom.repeat only opens plain-text data-* / aria-* attributes

Client state ​

  • [ ] No passwords, tokens, amounts, permissions or File objects
  • [ ] The successful-save path runs state.clear
  • [ ] Hand-written subscribe() calls release off()

Deployment ​

  • [ ] All servers share the same APP_KEY and the same Linker store
  • [ ] Production runs with APP_DEBUG=false