PHP code example of mintellity / upload-document

1. Go to this page and download the library: Download mintellity/upload-document 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/ */

    

mintellity / upload-document example snippets


use Mintellity\UploadDocument\Traits\InteractsWithDocuments;

return [
    'routes'         => [
        'middleware' => [
            'web'
        ]
    ],
    App\Models\User::class => [
        'first'  => 'First',
        'second' => 'Second',
        'third'  => 'Third',
    ]
];
bash
php artisan upload-document:install
bash
php artisan vendor:publish --tag="upload-document-views"