PHP code example of sawirricardo / laravel-filepond

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

    

sawirricardo / laravel-filepond example snippets


return [
    'server_url' => 'laravel-filepond',
    'disk' => 'local',
    'rules' => ['leware' => ['web', 'throttle:60,1'],
    'preview_mimes' => [
        // Supported file types for temporary pre-signed file URLs.
        'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
        'mov', 'avi', 'wmv', 'mp3', 'm4a',
        'jpg', 'jpeg', 'mpga', 'webp', 'wma',
    ],
    'max_upload_time' => 5, // Max duration (in minutes) before an upload gets invalidated.
];
bash
php artisan vendor:publish --tag="laravel-filepond-config"