Environment configuration
C.A.R. 911 uses Laravel’s environment-based configuration system. All environment-specific settings are stored in the.env file at the root of your project.
Application settings
Configure the core application settings in your.env file:
Basic configuration
.env
- APP_NAME: Display name for your application
- APP_ENV: Environment mode (
local,staging, orproduction) - APP_KEY: Encryption key (generated by
php artisan key:generate) - APP_DEBUG: Enable detailed error messages (set to
falsein production) - APP_URL: Base URL where your application is hosted
The application timezone is set to
America/Argentina/Buenos_Aires and locale is set to es (Spanish) by default in config/app.php.Logging configuration
.env
- LOG_CHANNEL: Logging driver (options:
stack,single,daily,syslog) - LOG_LEVEL: Minimum log level (
debug,info,notice,warning,error,critical,alert,emergency)
Database configuration
C.A.R. 911 requires MySQL for data storage. Configure your database connection:.env
Database connection options
- DB_CONNECTION: Database driver (C.A.R. 911 uses
mysql) - DB_HOST: Database server address
- DB_PORT: MySQL port (default: 3306)
- DB_DATABASE: Database name
- DB_USERNAME: Database user with appropriate privileges
- DB_PASSWORD: Database password
Ensure your database user has permissions for SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, and ALTER operations.
Cache and session configuration
Optimize application performance with proper cache and session settings:.env
Configuration options
- CACHE_DRIVER: Cache storage method (
file,redis,memcached,database) - SESSION_DRIVER: Session storage method (
file,cookie,database,redis) - SESSION_LIFETIME: Session timeout in minutes
- QUEUE_CONNECTION: Queue driver for background jobs (
sync,database,redis)
Broadcasting and queue configuration
For real-time features and background job processing:.env
- BROADCAST_DRIVER: Real-time event broadcasting (
log,pusher,redis) - FILESYSTEM_DRIVER: File storage location (
local,s3,public)
Mail configuration
Set up email notifications for system alerts:.env
Mail driver options
- MAIL_MAILER: Email service (
smtp,sendmail,mailgun,ses) - MAIL_ENCRYPTION: Encryption protocol (
tlsorssl) - MAIL_FROM_ADDRESS: Default sender email address
- MAIL_FROM_NAME: Default sender name
Application-specific configuration
C.A.R. 911 includes several application-specific settings configured inconfig/app.php:
Timezone and localization
config/app.php
Service providers
C.A.R. 911 includes specialized service providers:config/app.php
- Excel exports: Generate reports and export data to spreadsheets
- Permission management: Role-based access control for users
Security configuration
Encryption
The application uses AES-256-CBC encryption:config/app.php
APP_KEY must be set for encryption to work properly.
Debug mode
Redis configuration (optional)
For improved performance with caching and queues:.env
- Session management
- Cache storage
- Queue processing
- Real-time broadcasting
Verification
After configuring your environment, verify the settings:Next steps
With C.A.R. 911 properly configured, you can now:- Set up user roles and permissions
- Configure resource types (cameras, vehicles, dependencies)
- Import existing data
- Train staff on the CECOCO command center interface