Loading...

This is taking longer than expected.

Coding standards

Laravel Routes

These are the standards the analyzer applies. Every rule states what it checks and why it exists.

All standards

Controllers

Controllers are not part of the standard architecture

  • Use Livewire components instead
  • Exception: only when Livewire clearly does not make sense
  • Honor an adjacent explicit exception comment when it explains why the route is not a Livewire UI flow, such as vendor diagnostic endpoints, file/download responses, OAuth or external callbacks, browser API callbacks, or other headless endpoints.
  • Do not fail a controller route merely because it is a controller when the reviewed route itself documents a concrete non-Livewire reason. Fail only if the exception is missing, vague, or contradicted by the route being a normal user-facing screen.

CRUD Architecture

Use Laravel Front for simple admin CRUDs. Use Livewire for create/edit only when:

  • The form manages multiple related models inline
  • It has dynamic add/remove rows
  • It requires real-time field interactions

When Livewire overrides a Front route:

Route::front('Team\\Product');
Route::livewire('/products/create', Livewire\Teams\ProductEdition::class)->name('products.create');
Weblabor Logo Developed by Weblabor