panelume / starter
Panelume starter application — Laravel admin panel framework.
Requires
- php: ^8.3
- laravel/framework: ^12.0
- laravel/tinker: ^3.0
- panelume/panelume: ^2.0
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/pint: ^1.27
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- phpunit/phpunit: ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A Laravel 12 starter with Panelume installation hooks. The local distribution smoke checks the Composer bootstrap, guest login page and frontend build. Public registry installation is tracked separately.
Once the starter and its core/UI dependencies are available in their public registries:
composer create-project panelume/starter my-panel cd my-panel npm install && npm run build php artisan serve --no-reload
Visit http://localhost:8000/admin/login. Installation creates no user account. Create users through trusted application provisioning and configure panel admission before verifying authenticated workflows.
For a disposable local development database only, the existing php artisan db:seed example creates admin@example.com with password password. Do not use those credentials in a deployed application. This seed is not run by Composer and does not grant panel access.
Administrator admission
The panel configuration defaults admin_user_ids to an empty list. Add the positive integer ID of an existing, trusted administrator to this list; use the actual database ID, not an email, domain or user-submitted field. Refresh the application's configuration cache and reload its workers after changing deployment configuration. String IDs and malformed lists do not grant access.
The host accessFastPanel gate permits only the admin panel. AdminResourcePolicy explicitly authorizes that same administrator for Users, Posts and Orders; executeFastPanelActions authorizes custom actions. No public operations are enabled. This is a coarse example administrator policy. Replace it with application-specific model policies when restricted operator roles are needed; no RBAC or tenancy setup is implied.
New user passwords require at least eight characters. Omitting or leaving a password blank during an update preserves its hash. RedactedActivityLogger removes model-hidden attributes from creation data and update original/changes before audit persistence, including user passwords and remember tokens. Hosts must define any additional sensitive fields; this adapter does not scrub arbitrary nested payloads or repair existing audit rows.
What's included
| Piece | Why it matters |
|---|---|
| Posts | Classic CRUD + status filter/actions |
| Orders | State machine (draft → paid → shipped), confirmation actions, lockAfter amount |
| SQLite | Zero configuration |
| Vite + Tailwind | UI assets |
| Auth scaffolding | Session login |
Orders as the reference workflow
Orders is registered alongside Users and Posts.
OrderResource defines the state flow, including these transitions:
public function transitions(): array { return [ 'status' => [ 'initial' => 'draft', 'transitions' => [ ['from' => 'draft', 'to' => 'paid', 'action' => 'mark-as-paid'], ['from' => 'paid', 'to' => 'shipped', 'action' => 'ship'], ], 'lockAfter' => [ 'paid' => ['amount'], // amount locked after payment ], ], ]; }
Try it:
- Open Orders → create a draft.
- Click Mark as paid (confirm dialog).
amountbecomes read-only.- Inspect REST:
GET /admin/api/ordersandGET /admin/schema/orders/table.
Headless integration
This starter qualifies an authenticated web/session panel. A headless consumer requires its own panel/channel guards and authorization configuration; the installer flag alone does not establish that integration.
Included examples
Requirements
- PHP 8.3+
- Composer 2.x
- Node.js 20.19+ in the 20.x line, or 22.12+
See LICENSE.