Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
🍰 Future-Ready Clean Architecture & Vertical Slice Ecosystem for Enterprise, Gov & SaaS (Laravel & Flutter). Complete End-to-End SDLC from Design to Deploy via Visual UI, CLI & AI Prompts (IDE & Web MCP). Auto-generates Web, Mobile APIs, RBAC, Seeding & Audit Trails. By Hereafter Solutions (H. Sol)
Saved setup from 11 h ago
Will it work on Windows?
CONTRIBUTING.mdThank you for your interest in contributing to LaraSlice! We welcome bug fixes, documentation improvements, core slice enhancements, and architectural features from the community.
LaraSlice operates on the Three-Layer Packaging Model (ADR-001):
vendor/hereafter/laraslice / src/): Contains the discovery engine, declarative schema system, CLI generators, and default starter core slices (Users, Roles, Settings, Auth).app/Slices/): Application-specific domain slices (e.g. Invoices, Catalog, HR).LaraSlice's discovery system is explicitly designed so that any slice located in app/Slices/ automatically overrides the packaged core slice of the same name.
If your project needs to customize a core slice (for instance, adding cnic, phone, or custom relationships to Users):
php artisan slice:publish Users
To publish all packaged core slices simultaneously:
php artisan slice:publish --all
vendor/hereafter/laraslice/src/Slices/{SliceName} into your local app/Slices/{SliceName}.composer update operations will never overwrite or touch files inside app/Slices/.If you want to contribute enhancements or fixes directly back to LaraSlice's core starter slices or framework engine:
git clone https://github.com/<your-username>/laraslice.git
cd laraslice
composer install
src/Slices/{SliceName}/ (e.g. src/Slices/Users, src/Slices/Roles, src/Slices/Settings).src/Core/, src/Commands/, src/Generator/, or src/Schema/.Unit, feature and architecture-boundary tests, formatting (Pint) and static analysis (Larastan) must pass; CI runs the same checks on PHP 8.2-8.4 and Laravel 11-13:
composer test # PHPUnit
composer lint # pint --test, then phpstan
composer format # fix formatting
Larastan starts from a baseline (phpstan-baseline.neon) of findings that predate it. Fix entries rather than adding new ones.
master (never commit directly on master for shared work):
git checkout master
git pull origin master
git checkout -b feat/your-change
feat:, fix:, docs:, ...).git push -u origin feat/your-change
HereafterSol/laraslice master. Do not force-push or push straight to master on the organization repository.When developing a feature or bug fix for LaraSlice, the best way to verify your changes live is by linking your local LaraSlice repository to a Laravel test application using Composer's path repository:
composer.json.path repository pointing to your local LaraSlice clone:
"repositories": [
{
"type": "path",
"url": "../LaraSlice",
"options": {
"symlink": true
}
}
]
composer update hereafter/laraslice
vendor/hereafter/laraslice pointing directly to your local LaraSlice directory. Any edits you make in LaraSlice are immediately reflected in your test app in real time!Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/HereafterSol/laraslice.git cd laraslice
PHP ^8.2
scoop install php composer # needs scoop: https://scoop.sh
composer install
Two doors, one system. After installing, you can start through the Studio door — open the Dev Studio, write the Mind in Plan mode, scaffold slices in Create, shape them in Design — or through the AI door — hand your AI assistant the shipped skill (npx skills add HereafterSol/laraslice) and brief it with the Mind; it drafts, scaffolds, and verifies by the same declarations. Both doors produce the same Mind · Body · Heart files, and teams mix them freely. From-zero and brief-first starts are first-class; porting an existing system is simply the third door (see the Replica Protocol). Full guide: the framework skill, §24.
composer require hereafter/laraslice
php artisan slice:install
slice:install publishes the landing page, runs all core database migrations, and seeds the default Super Admin user (admin@laraslice.com / password).
Every LaraSlice project, whichever door you use, starts the same way: write the Mind before the first slice. The Mind is the project's one-page intent — purpose, who uses it, the main journeys, and how success is measured. It takes minutes, a non-technical owner can read and sign it, and everything else (slices, flows, gates) is checked against it.
system.yaml for your sign-off (or run php artisan slice:plan:draft from a written brief). The family, arranged the way skills.sh indexes skills — one folder per skill, examples and references inside: laraslice (the core: trilogy, fields, standard UI, concepts), laraslice-start (this door), laraslice-port (moving an existing system), laraslice-operate (running it after launch: customize, optimize, improve, operate, upgrade). Install them all with npx skills add HereafterSol/laraslice.Generate a single feature slice or an entire multi-slice domain suite with full CRUD, BlatUI views, and Flutter mobile clients:
# Scaffold a single slice
php artisan slice:make Invoice --flutter
# Scaffold an entire CRM Domain Suite (multi-slice Bounded Context)
php artisan slice:make Companies Contacts Deals --domain=CRM
# Scaffold an E-Commerce Suite with Flutter mobile clients
php artisan slice:make Products Orders Customers Categories --domain=E-Commerce --flutter
This instantly creates:
app/Slices/{Domain}/{Slice}/ (Full vertical slices with DTO contracts, models, controllers, and BlatUI views)flutter_app/lib/slices/{slice}/ (Optional native Flutter Dart models, API clients, and mobile screens)In production environments, cache discovered slices just like route:cache:
php artisan slice:cache
To clear the cache during development:
php artisan slice:clear
The ONE Studio (http://localhost:8000/laraslice/wizard) is organized as destinations, not steps:
slice:plan:draft drafts a Mind + Bodies from discovery.slice.yaml / Body designer with field widths and instant component preview.Manage slice lifecycle, seeding, and teardown directly from the command line:
# List all slices with domain grouping
php artisan slice:list
php artisan slice:list --domain=CRM
# Seed realistic demo data into slice tables
php artisan slice:seed Contacts --count=20
php artisan slice:seed --domain=CRM --count=5
# Toggle slice/domain activation (hide/show in navigation)
php artisan slice:toggle Contacts --disable
php artisan slice:toggle --domain=CRM --enable
# Wipe (truncate) all records from slice tables
php artisan slice:wipe Tests --force
php artisan slice:wipe --domain=CRM --force
# Destroy a slice or domain (drop tables, clean migrations, delete files)
php artisan slice:destroy Tests --mode=comple
…
No reports for Windows yet.
GitManual AI Agent reads the 4 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.