How hereaftersol/laraslice works
LaraSlice is a Laravel vertical-slice application framework. A developer or project owner plans or ports an application, declares its authoritative runtime schema in slice manifests, and uses discovery and generation to make slices available; the framework then serves web/API behavior, security, and declared workflows. The README also describes AI/MCP support, Flutter clients, and a starter application shell. The excerpts and index establish only selected connections, so unsampled capability links are omitted or marked unverified.
Main entry points: SliceManager.php Slice discovery · BaseSliceWebController.php Web slice handling · AiEngine.php AI engine · WizardController.php Slice wizard
Components 21
Planning and porting
- Blueprint studio
src/Blueprint/BlueprintStudioController.php - Legacy porting
src/Porting/SlicePortService.php - Surface derivation
src/Porting/SurfaceDerivationPipeline.php - Slice wizard
src/Wizard/WizardController.php
Slice runtime
- Slice discovery
src/Core/Discovery/SliceManager.php - Slice manifest
src/Core/Discovery/SliceManifest.php - Web slice handling
src/Core/Base/BaseSliceWebController.php - Record surfaces
src/Support/DirectoryUi.php
Domain capabilities
- Authentication
src/Slices/Auth/Controllers/AuthWebController.php - User domain
src/Slices/Users/Models/User.php - Workflow engine
src/Slices/Workflows/Services/WorkflowEngineService.php - Workflow definitions
src/Slices/Workflows/Models/Workflow.php - Flutter clients
src/Generator/FlutterSliceGenerator.php
Framework services
- Slice generation
src/Generator/SliceGenerator.php - Permission checks
src/Core/Security/Access.php - AI engine
src/Core/Ai/AiEngine.php - Metadata exploration
src/Core/Metadata/ConfirmationController.php - Framework facade
src/Facades/LaraSlice.php - MCP support
src/Core/Ai/AiEngine.php
Application shell
- Starter shell
resources/stubs/starter/views/layouts/app.blade.php
Other components
- Developer / owner
Connections 20
- Developer / owner → Blueprint studio: plans system
- Developer / owner → Legacy porting: ports legacy app
- Legacy porting → Surface derivation: derives surfaces
src/Porting/SurfaceDerivationPipeline.php - Developer / owner → Slice wizard: generates slices
- Slice wizard → Slice discovery: rediscovers slices
src/Wizard/WizardController.php - Slice wizard → Slice generation: generates slices
src/Wizard/WizardController.php - Slice discovery → Slice manifest: loads manifests
src/Core/Discovery/SliceManager.php - Slice discovery → Permission checks: syncs permissions
src/Core/Discovery/SliceManager.php - Web slice handling → Slice discovery: resolves slices
src/Core/Base/BaseSliceWebController.php - Web slice handling → Record surfaces: renders records
src/Core/Base/BaseSliceWebController.php - Web slice handling → Permission checks: checks access
src/Core/Base/BaseSliceWebController.php - Authentication → User domain: authenticates users
src/Slices/Auth/Controllers/AuthWebController.php - Workflow engine → Workflow definitions: reads definitions
src/Slices/Workflows/Services/WorkflowEngineService.php - AI engine → Slice discovery: uses slice metadata
src/Core/Ai/AiEngine.php - AI engine → Permission checks: checks permissions
src/Core/Ai/AiEngine.php - AI engine → Legacy porting: uses port service
src/Core/Ai/AiEngine.php - Metadata exploration → Framework facade: uses framework facade
src/Core/Metadata/ConfirmationController.php - Starter shell → Framework facade: reads framework state
resources/stubs/starter/views/layouts/app.blade.php - Developer / owner → Flutter clients: scaffolds clients
- Developer / owner → MCP support: uses agent tools