Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Easy Admin File Upload Field Laravel Package

bytescommerce/easy-admin-file-upload-field

View on GitHub
Deep Wiki
Context7

BytesCommerce QA Pipeline

Finally upload files via backend of EasyAdmin

Long gone are the times where you cannot easily upload files trough an easy-admin backend CRUD controller!

Now with this little adaption its very easy to implement a file upload field in your EasyAdmin backend.

How to use it

  1. Install the package via composer
composer require bytescommerce/easy-admin-file-upload-field
  1. Add a File Field to your EasyAdmin CRUD controller
use BytesCommerce\FileUploadField\Field\FileField;

yield FileField::new('filename', t('File'))
    ->setBasePath(sprintf('%s', File::BASE_FILE_PATH))
    ->setUploadDir(sprintf('public/%s', File::BASE_FILE_PATH))
    ->setUploadedFileNamePattern('[name].[extension]')
    ->setColumns('col-sm-12 col-md-6');

And you're done.

Proudly presented by Bytes Commerce UG :sparkle:

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment