Skip to content

Drop the system-setup route: its controller was never written - #2

Merged
HafizMMoaz merged 1 commit into
masterfrom
drop-dead-system-setup-route
Jul 16, 2026
Merged

Drop the system-setup route: its controller was never written#2
HafizMMoaz merged 1 commit into
masterfrom
drop-dead-system-setup-route

Conversation

@HafizMMoaz

Copy link
Copy Markdown
Member

src/Routes/web.php registered hrm.system-setup.index against Zerp\Hrm\Http\Controllers\SystemSetupController — a class that does not exist anywhere in the package.

Laravel resolves controllers lazily, so this stayed quiet until something walked the whole route table:

  • php artisan route:list threw ReflectionException: Class "Zerp\Hrm\Http\Controllers\SystemSetupController" does not exist
  • /hrm/system-setup would 500 in production

Nothing links to the route, and there is no Hrm/SystemSetup/Index page for it to render — the system-setup screens each have their own routes (hrm.branches.index and friends) and share SystemSetupSidebar.tsx. So the route is dead weight, and it goes.

Verified: artisan route:list now completes, 227 hrm routes listed.

Pre-existing on master; not introduced by the tenant-scope work.

The route pointed at Zerp\Hrm\Http\Controllers\SystemSetupController, which
does not exist. Laravel resolves controllers lazily, so this stayed quiet until
something walked the route table: artisan route:list threw a ReflectionException,
and /hrm/system-setup 500'd.

Nothing links to it and there is no SystemSetup/Index page to render. The system
setup screens are all reachable through their own routes (hrm.branches.index and
friends), so the route is dead and goes.
@HafizMMoaz
HafizMMoaz requested a review from a team as a code owner July 14, 2026 06:19
@HafizMMoaz
HafizMMoaz merged commit 370fcd9 into master Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant