PHP code example of jildertmiedema / laravel-plupload

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

    

jildertmiedema / laravel-plupload example snippets


'providers' => [
    JildertMiedema\LaravelPlupload\LaravelPluploadServiceProvider::class,
]

'aliases' => array(
    'Plupload' => JildertMiedema\LaravelPlupload\Facades\Plupload::class,
),

Route::post('/upload', function()
{
    return Plupload::receive('file', function ($file)
    {
        $file->move(storage_path() . '/test/', $file->getClientOriginalName());

        return 'ready';
    });
});

echo Plupload::make([
    'url' => 'upload',
    'chunk_size' => '100kb',
]);

echo Plupload::init([
    'url' => 'upload',
    'chunk_size' => '100kb',
])->withPrefix('current')->createHtml();
sh
php artisan vendor:publish

TokenMismatchException in VerifyCsrfToken.php line 53: