Installation
Step 1: Install Package
Section titled “Step 1: Install Package”composer require binarybuilds/laritor-client
Step 2: Publish Config
Section titled “Step 2: Publish Config”php artisan vendor:publish --provider="BinaryBuilds\LaritorClient\LaritorServiceProvider"
Step 3: Update Env Variables
Section titled “Step 3: Update Env Variables”LARITOR_ENABLED=trueLARITOR_INGEST_URL=your-ingest-url
Step 4: Run Laritor sync command after each deployment.
Section titled “Step 4: Run Laritor sync command after each deployment.”Run the below command after each deployment; so important code changes like scheduled tasks, database schema, custom health checks and server changes are synchronized with Laritor.
php artisan laritor:sync
Step 5: (Optional) Collect Server Metrics
Section titled “Step 5: (Optional) Collect Server Metrics”If you wish to collect server metrics like cpu, memory and disk usage, Schedule the below command to run every minute.
php artisan laritor:send-metrics
Once you complete the above steps, Your application should start sending events to laritor. Check the next section about how to customize and control what information is shared with laritor.