PHP code example of softgala / laravel-claude-button

1. Go to this page and download the library: Download softgala/laravel-claude-button 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/ */

    

softgala / laravel-claude-button example snippets


return [
    // Enable or disable the button
    'enabled' => env('AI_DEBUG_BUTTON_ENABLED', true),

    // Only show in these environments
    'environments' => ['local', 'development'],

    // Stack trace depth (0 = cleanest, just error + location)
    // Set to 3+ to 
bash
php artisan vendor:publish --tag=claude-button-config
bash
php artisan vendor:publish --tag=claude-button-views