PHP code example of elmudo-dev / filament-custom-attribute-file-upload
1. Go to this page and download the library: Download elmudo-dev/filament-custom-attribute-file-upload 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/ */
elmudo-dev / filament-custom-attribute-file-upload example snippets
CustomAttributeSpatieMediaLibraryFileUpload::make('gallery')
->collection('gallery')
->conversion('thumb')
->downloadable()
->panelLayout('grid')
->multiple()
->reorderable(),
CustomAttributeFileUpload::make('gallery')
->downloadable()
->panelLayout('grid')
->multiple()
->reorderable(),
css
@source '../../../../vendor/elmudo-dev/filament-custom-attribute-file-upload/resources/**/*.blade.php';
bash
php artisan vendor:publish --tag="filament-custom-attribute-file-upload-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-custom-attribute-file-upload-config"
bash
php artisan vendor:publish --tag="filament-custom-attribute-file-upload-views"