Rapidly build admin panels with the make:admin generator.
Canx Admin provides a powerful generator to scaffold Admin Controllers and Views based on your models. It utilizes Canx UI components for a consistent and modern look.
Install the canx-admin package:
bun add canx-adminTo generate an admin CRUD interface for a model (e.g., User), run:
npx canx-admin make:admin UserYou can also generate a modern analytics dashboard:
npx canx-admin make:dashboardThis creates src/resources/views/admin/dashboard.tsx with sample charts and metrics cards.
After generation, register your routes in routes/web.ts:
import { Route } from "canx/routing";
import { UserController } from "@/app/controllers/Admin/UserController";
Route.prefix("admin").group(() => {
Route.resource("users", UserController);
});