PHP code example of appslanka / laravel-bug-fix

1. Go to this page and download the library: Download appslanka/laravel-bug-fix library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

appslanka / laravel-bug-fix example snippets




/**
 * Configuration for Appslanka/LaravelBugFix package
 */
return [
    /**
     * API endpoint URL where error reports will be sent.
     * Defaults to 'https://laravelbugfix.com/api/reports' if not provided in environment.
     */
    'api_url' => env('LBF_API_URL', 'https://laravelbugfix.com/api/reports'),

    /**
     * API key used for authentication when sending error reports.
     * Defaults to 'your-api-key' if not provided in environment.
     */
    'api_key' => env('LBF_API_KEY', 'your-api-key'),

    /**
     * Flag indicating whether to ror reports.
     * Default identifier field is 'id'. Customize as per application's user identifier field.
     */
    'exception_user_identifier_field' => 'id',

    /**
     * List of fields that should be masked (replaced with asterisks) in error reports.
     * Protects sensitive information such as passwords, credit card numbers, etc.
     */
    'masked_fields' => [
        'password',
        'credit_card_number',
        'social_security_number',
        'email',
        'phone_number',
        'date',
        'api_key',
        'token',
        'authorization',
        'auth',
        'verification',
        'credit_card',
        'cardToken',
        'cvv',
        'iban',
        'name',
        'email',
    ],
];
bash
php artisan vendor:publish --tag="bug-fix-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="bug-fix-config"