Download the PHP package dbt/laravel-filepond without Composer
On this page you can find all versions of the php package dbt/laravel-filepond. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dbt/laravel-filepond
More information about dbt/laravel-filepond
Files in dbt/laravel-filepond
Package laravel-filepond
Short Description Filepond server implementation for Laravel
License MIT
Homepage https://github.com/dbt/laravel-filepond
Informations about the package laravel-filepond
Laravel Filepond
This package provides Laravel backend implementation of filepond.
Requirements
This LaravelFilepond package requires PHP 7.2+ and Laravel 5.8+
Installation
LaravelFilepond can be installed via composer
This package will automatically register a service provider.
You can optionally publish the config file
This is the default content of the file
By default, the laravel filepond will store its temporary files on Laravel's local disk. If you want a dedicated disk you should add a disk to config/filesystems.php. This would be a typical configuration:
Don't forget to ignore the directory of your configured disk so the files won't end up in your git repo.
Basic Usage
Configure filepond
To upload the file from your form to the endpoints provided by laravel filepond package, You have to set following filepond configurations
Once file uploaded to successfully to the server, filepond store the unique id of the file in the hidden input field.
Accessing the files
You can access uploaded files in the controller just like accessing regular http uploaded files. You just have to use Dbt\LaravelFilepond\Request
instead of Illuminate\Http\Request
Validate request
When you post the form to the server, You might want to validate your form request. Validating the files uploaded by filepond is exactly same as validating http uploaded files.
Laravel filepond checks the unique file ID of your file in request and replace the field with uploaded file during validation.
Etc.
Please see CONTRIBUTING for details. The MIT License (MIT). Please see License File for more information.