System Requirements
Before installing Sistema de Abogados, ensure your system meets the following requirements:PHP
Version 8.0.2 or higher
Composer
Latest version for dependency management
MySQL
Version 5.7 or higher / MariaDB 10.3+
Node.js
Version 14.x or higher with npm
Make sure you have PHP extensions enabled: OpenSSL, PDO, Mbstring, Tokenizer, XML, Ctype, JSON, BCMath
Installation Steps
Install PHP Dependencies
Install all required PHP dependencies using Composer:This will install the following key packages:
Core Dependencies
Core Dependencies
- Laravel Framework 9.19+ - The PHP framework foundation
- Laravel Sanctum 3.0+ - API authentication
- Laravel Scout 10.0+ - Full-text search functionality
- Laravel Tinker 2.7+ - Interactive REPL
- Spatie Laravel Permission 5.9+ - Role and permission management
- Guzzle HTTP 7.2+ - HTTP client library
Development Dependencies
Development Dependencies
- Laravel Breeze 1.18+ - Authentication scaffolding
- Laravel Pint 1.0+ - Code style fixer
- Pest 1.16+ - Testing framework
- Faker - Fake data generation
- Laravel Lang Common 2.0+ - Language translations
Install Node.js Dependencies
Install frontend dependencies and compile assets:Key frontend packages include:
- Vite - Modern build tool
- Alpine.js - Lightweight JavaScript framework
- Tailwind CSS - Utility-first CSS framework
- SweetAlert2 - Beautiful alert popups
Configure Environment
Copy the example environment file and configure it:At minimum, set these variables:
.env
Generate Application Key
Generate a unique application encryption key:This command sets the
APP_KEY value in your .env file, which is used for encrypting user sessions and other encrypted data.Create Database
Create the MySQL database for the application:
Make sure the database name matches the
DB_DATABASE value in your .env file.Run Database Migrations
Execute migrations to create all required database tables:This will create tables for:
- Users and authentication (
users,password_resets,personal_access_tokens) - Roles and permissions (
roles,permissions,model_has_roles, etc.) - Application entities (
clientes,expedientes,actividades, etc.) - Additional features (conciliadores, documentos, and more)
Seed the Database
Populate the database with initial roles and an admin user:This will create:Default Roles:
admin- Full system accessasistente- Assistant roleabogado- Lawyer role
- Email:
[email protected] - Password:
password - Role: Admin
Build Frontend Assets
Compile the frontend assets for production or development:The development server will watch for changes and hot-reload automatically.
Post-Installation Steps
Configure Spatie Permissions
The application uses Spatie Laravel Permission for role-based access control. After installation:- The permission tables are automatically created via migrations
- Default roles are seeded (admin, asistente, abogado)
- Configure cache settings in
config/permission.phpif needed
Set Up Laravel Scout (Optional)
If you plan to use search functionality:Configure Queue Workers (Optional)
For background job processing:Verification
Verify your installation by checking:- Application Status
- Database Connection
- Route List
Troubleshooting
composer install fails
composer install fails
Solution: Ensure you have PHP 8.0.2+ and all required extensions:
Migration errors
Migration errors
Solution: Check database credentials in
.env and ensure MySQL is running:Permission denied errors
Permission denied errors
Solution: Fix storage permissions:
npm install fails
npm install fails
Solution: Clear npm cache and try again:
Assets not loading
Assets not loading
Solution: Rebuild assets and clear cache:
Next Steps
Now that you have installed Sistema de Abogados, proceed to:Configuration
Configure environment variables and services
Creating Cases
Learn how to create and manage legal cases
Managing Expedientes
Guide to conciliation process management