Download the PHP package dcodegroup/laravel-attachments without Composer
On this page you can find all versions of the php package dcodegroup/laravel-attachments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcodegroup/laravel-attachments
More information about dcodegroup/laravel-attachments
Files in dcodegroup/laravel-attachments
Package laravel-attachments
Short Description Allow adding attachments to any document
License MIT
Informations about the package laravel-attachments
Laravel Attachments
Simple Dropin package to add attachments to your models.
Install
Version / Branch | Laravel Support | Install Command |
---|---|---|
0.x | <= v10 | composer require dcodegroup/laravel-attachments:^0.0 |
1.x | >= v11 | composer require dcodegroup/laravel-attachments:^1.0 |
Then run
Database
If you are using either ULIDS
or UUIDs
in your tables ensure to update the published migrations for the media
table.
eg. replace with the appropriate type
or
Then run the migrations
css @import "../../vendor/dcodegroup/laravel-attachments/resources/scss/attachments.scss"; js import attachmentPlugin from "../../vendor/dcodegroup/laravel-attachments/resources/js/plugin"
app.use(attachmentPlugin)
bash
npm i @heroicons/vue bytes form-backend-validation vue-image-markup vue-upload-component
bash
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-config"
bash
openssl genrsa -out private_key.pem 2048
bash
openssl rsa -pubout -in private_key.pem -out public_key.pem
## User model
Add the following contract to the `User` model.
## Usage
Add the template to the edit page you want.
All versions of laravel-attachments with dependencies
ext-imagick Version *
dcodegroup/laravel-cloudfront-url-signer Version ^3.6
laravel/framework Version ^11.0
mvanduijker/laravel-model-exists-rule Version ^3.0
spatie/laravel-medialibrary Version ^11.0
spatie/pdf-to-image Version ^2.2