PHP code example of githen / laravel-yidun

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

    

githen / laravel-yidun example snippets


'yidun' => [
    'driver' => 'daily',
    'path' => storage_path('logs/yidun/yidun.log'),
    'level' => 'debug',
    'days' => 7,
    'permission' => 0770,
],


return [
    /*
    |--------------------------------------------------------------------------
    | 网易易盾配置
    |--------------------------------------------------------------------------
    |
    */
    // 产品秘钥
    'secret_id' => '',
    'secret_key' => '',
    'log_channel' => 'yidun',//写入日志频道,空不写入
    // 融媒体解决方案
    'media_solution' => [
        'callback_url' => config('app.url').'/yidun/media/callback',// 融媒体回调地址 未设置或者空,不触发回调
        'callback_target' => \App\Extend\Yidun\Media::class,// 融媒体回调处理类 未设置或者空,不触发
    ]
];