Prerequisites
Before installing Dashboard Laravel, ensure you have the following software installed on your system:| Software | Minimum Version | Purpose |
|---|---|---|
| PHP | 8.2+ | Backend runtime |
| Composer | 2.x | PHP dependency manager |
| PostgreSQL | 15+ | Database server |
| Git | Latest | Version control |
Verify Prerequisites
Run these commands to verify your system meets the requirements:Installation Steps
Install PHP Dependencies
Use Composer to install all required PHP packages:This will install:
- Laravel Framework 12.0
- Laravel Tinker 2.10.1
- All required dependencies from
composer.json
The installation may take a few minutes depending on your internet connection.
Configure Environment Variables
Copy the example environment file and create your own Edit the
.env configuration:.env file with your database credentials:.env
Generate Application Key
Generate a unique encryption key for your application:This command will:
- Create a secure 32-character random string
- Automatically update the
APP_KEYvalue in your.envfile - Enable Laravel’s encryption services
The application key is used to encrypt cookies, sessions, and other sensitive data.
Run Database Migrations
Execute the database migrations to create all required tables:This will create the following tables:
users- User accounts and authenticationpassword_reset_tokens- Password reset functionalitysessions- Session managementclientes- Client managementventas- Sales ordersfacturas- Invoicingmensajes- Messaging systemcacheandjobs- Laravel system tables
Create Test User Account
Create a test user account to access the dashboard:
You can create multiple users with different credentials for testing purposes.
Start the Development Server
Launch the Laravel development server:You should see output similar to:
Access the Dashboard
Open your web browser and navigate to:Login with your test credentials:
- Email:
[email protected] - Password:
123456
You should see the login screen. After authentication, you’ll be redirected to the main dashboard.
Verify Installation
To confirm everything is working correctly:1. Check Routes
List all available routes:GET /→ homePOST /login→ loginGET /dashboard→ dashboardGET /estadisticas→ estadisticas- And more…
2. Test Authentication
- Navigate to the login page
- Enter your test credentials
- Verify successful redirect to the dashboard
- Test logout functionality
3. Check Database Connection
Verify tables were created:Common Installation Issues
Migration Error: Connection Refused
Migration Error: Connection Refused
Problem: Cannot connect to PostgreSQL database.Solution:
- Verify PostgreSQL is running:
sudo systemctl status postgresql - Check credentials in
.envfile - Ensure the database exists:
psql -U postgres -l
Composer Install Fails
Composer Install Fails
Problem: Composer cannot install dependencies.Solution:
- Update Composer:
composer self-update - Clear Composer cache:
composer clear-cache - Check PHP version:
php --version(must be 8.2+)
App Key Not Set
App Key Not Set
Problem: “No application encryption key has been specified” error.Solution:
Run
php artisan key:generate to create the APP_KEY.Permission Denied Errors
Permission Denied Errors
Problem: Laravel cannot write to storage or cache directories.Solution:
Next Steps
Now that you have Dashboard Laravel installed, explore the application:Configuration Guide
Learn how to configure environment settings and customize the application
Project Structure
Understand the codebase organization and file structure
Database Models
Explore Eloquent models and database relationships
Development Workflow
Best practices for developing with Dashboard Laravel
