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

Laravel Attachment Library Laravel Package

van-ons/laravel-attachment-library

Attach files to Laravel Eloquent models with a simple HasAttachments trait and Attachment model. Includes installer command for migrations/assets and an attachments relationship to link existing uploads to any model.

View on GitHub
Deep Wiki
Context7

Installation

To get started with the Laravel Attachment Library, you will need to follow a few simple steps. This guide will walk you through the process of installing the package and setting it up in your Laravel application.

Composer

First, you need to add the package to your project using Composer. Open your terminal and run the following command:

$ composer require van-ons/laravel-attachment-library

Setup

After the package has been added to your project, you need to run the installation command. This command will publish the necessary configuration files and set up the package in your Laravel application.

Run the following Artisan command:

$ php artisan attachment-library:install 

Configuration

By default, this package uses the public disk defined in filesystems.php. This can be overridden by adding the following to the project's .env file:

[!NOTE] It is advised to use a disk without any other files. This prevents files from being present without being visible in the file manager.

ATTACHMENTS_DISK=disk_name_here

The glide.php and attachment-library.php files contain more configuration options.

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.
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
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours