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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware