PHP code example of codingo-me / dropzoner

1. Go to this page and download the library: Download codingo-me/dropzoner 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/ */

    

codingo-me / dropzoner example snippets


        Codingo\Dropzoner\DropzonerServiceProvider::class

    @



namespace App\Listeners;

use Codingo\Dropzoner\Events\ImageWasUploaded;

class ImageUploadListener
{
    /**
     * Example listener for image uploads
     * Event carries original_filename
     * and server_filename
     *
     * @param ImageWasUploaded $event
     */
    public function handle(ImageWasUploaded $event)
    {
        \Log::info('Inside ImageUploadListener, image was uploaded: ' . $event->server_filename);
    }
}
shell
php artisan vendor:publish

<link rel="stylesheet" href=" echo asset('vendor/dropzoner/dropzone/dropzone.min.css'); 

<script src=" echo asset('vendor/dropzoner/dropzone/dropzone.min.js');