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

File Bundle Laravel Package

da-vinci-studio/file-bundle

View on GitHub
Deep Wiki
Context7

file-bundle

###Installation

  1. Add bundle into composer.json

composer require da-vinci-studio/file-bundle

  1. Register bundle in AppKernel

      public function registerBundles()
      {
        $bundles = [
           // ...
           new \Dvs\FileBundle\DvsFileBundle()
        ];
      }
    

###Using FileReceiver FileReceiver provides a way to save files in a specific localization via FlySystem. It will take care of your file's name and path generation needed for correct saving.

  1. Create a directory for file saving (e.g. document in root_dir)
  2. Register directory in parameters.yml

document_upload_dir: document

  1. According to FlySystem documentation register file system in config.yml in connection with created directory

      dvs_file:
        filesystems:
          pp_standard:
            adapter:
              local:
                directory: "%kernel.root_dir%/document"
    
  2. Register FileReceiver as a dependency using id: dvs.file_receiver

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.
graham-campbell/flysystem
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php