PHP code example of moeplayer / laravel-danmaku

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

    

moeplayer / laravel-danmaku example snippets


// app\Http\Middleware\VerifyCsrfToken.php
protected $except = [
     'danmakuv2'
];

php artisan vendor:publish --tag danmaku
php artisan migrate