Download the PHP package lac/toolkit without Composer
On this page you can find all versions of the php package lac/toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package toolkit
Short Description Laravel Arsenal Core (LAC) - A toolkit for standardizing and accelerating Laravel development with automated scaffolding, synchronization, and code generation tools
License MIT
Informations about the package toolkit
Laravel Arsenal Core (LAC)
Laravel Arsenal Core (LAC) is a toolkit for standardizing and accelerating Laravel development with automated scaffolding, synchronization, and code generation tools.
πΊπΈ English (current) | π―π΅ ζ₯ζ¬θͺ
Overview
LAC is a comprehensive toolset that automates repetitive tasks in Laravel development and generates code that follows standardized patterns, resulting in maintainable systems.
π New in v2.0 - Bidirectional Database Design
LAC v2.0 introduces groundbreaking two-way synchronization between PlantUML ER diagrams and Laravel migrations:
- Design First: Create your database schema visually with PlantUML, then generate migrations
- Code First: Write migrations and automatically generate up-to-date ER diagrams
Features
- Scaffolding: Generate models, controllers, services, requests, views, factories, and seeders with a single command
- Route Syncn: Automatic generation and synchronization of web/API routes based on controllers
- Migration and Excel Integration: Generate Excel templates based on migration files and import data
- Model Relation Sync: Automatically generate model relationships from migration files
- Validation Sync: Automatically generate validation rules for request classes based on database schema
- Bidirectional ER Diagram Sync (New in v2.0): Two-way synchronization between PlantUML diagrams and Laravel migrations
Development Workflow with LAC
LAC enhances your development workflow:
Option 1: Design-First Approach
- Design your database schema with PlantUML
- Generate migrations with
lac:gen-migration
- Generate resources with
lac:scaffold
- Auto-generate routes with
lac:sync-routes
- Update model relationships with
lac:sync-model-rel
- Generate validation rules with
lac:sync-validations
Option 2: Code-First Approach
- Create migration files manually
- Generate ER diagrams with
lac:gen-diagram
for documentation - Generate resources with
lac:scaffold
- Continue with steps 4-6 from above
Test Data Management
- Generate Excel templates with
lac:db-template
- Fill in test data in the Excel files
- Place files in
storage/app/db/imports
directory - Import data with
lac:db-import
Installation
Install LAC via Composer:
LAC will be automatically registered through Laravel's service provider auto-discovery.
Requirements
- PHP 8.2 or higher
- Laravel 10.0 or higher
- PhpSpreadsheet 4.2 or higher
Usage
Scaffolding
Generate a complete CRUD resource with a single command:
Generate multiple resources at once:
Options:
--hard-delete
: Disable soft delete functionality--force
: Overwrite existing files--no-view
: Skip generating view files
https://github.com/user-attachments/assets/21d4f6eb-2140-4bc0-8013-473a367243b9
Route Synchronization
Automatically generate routes based on controllers:
Options:
--web
: Web routes only--api
: API routes only
https://github.com/user-attachments/assets/2a9c4957-e9c6-4105-bd3c-7a331510ce9b
Excel Template Generation
Generate Excel templates based on database table structure:
https://github.com/user-attachments/assets/a0244e67-a281-4cd7-bbbf-a810e34f28c6
Data Import from Excel
Import data from Excel files into the database: Place Excel files with your data in storage/app/db/imports directory Processed Excel files are automatically moved to storage/app/db/processed directory
https://github.com/user-attachments/assets/1a96d376-97df-42c5-8abe-474527b2a9d3
Model Relation Synchronization
Automatically generate model relationships based on migration files:
Synchronize specific models only:
https://github.com/user-attachments/assets/6ff284dc-2fe4-4260-a9b7-4056007615b6
Validation Synchronization
Generate validation rules for request classes based on database schema:
Target specific tables only:
https://github.com/user-attachments/assets/c7eebc48-0a6e-4f20-942e-3add216ee9d4
Bidirectional ER Diagram Sync
Generate Migrations from PlantUML
Design your database visually with PlantUML and generate Laravel migrations:
Please place your .puml file in storage/app/db/diagrams/ directory. Default files searched: schema.puml, er.puml, diagram.puml
β οΈ Important: To ensure perfect bidirectional synchronization, any existing migration files not defined in the PlantUML diagram will be deleted. You'll be prompted for confirmation before deletion.
Generate PlantUML from Migrations
Extract ER diagrams from your existing migration files for documentation:
The generated ER file will be stored into storage/app/db/diagrams/generated folder.
https://github.com/user-attachments/assets/e0d9869c-aef8-48a1-afe6-f547caffe280
Architecture Design
LAC follows these design principles:
- Service Classes: Business logic is centralized in service classes
- Repository Pattern: Data access is separated from models and controllers
- Slim Controllers: Controllers focus on request validation and service calls
- Systematic Directory Structure: Files are organized in a consistent structure
License
Released under the MIT License. See the LICENSE file for details.
Author
Contributions are welcome, including bug reports, feature requests, and pull requests.
All versions of toolkit with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
phpoffice/phpspreadsheet Version ^4.2