bigbeartech / attachments
A simple package for uploading media to Laravel
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- intervention/image: ^2.3
- league/glide: ^1.0
- league/glide-laravel: ^1.0
Requires (Dev)
- mockery/mockery: ^0.9.5
- phpunit/phpunit: ^5.4
This package is not auto-updated.
Last update: 2022-03-25 10:07:51 UTC
README
Installation
Install via composer - In the terminal:
composer require bigbeartech/attachments
Now add the following to the providers
array in your config/app.php
BigBearTech\Attachments\AttachmentsServiceProvider::class,
and this to the aliases
array in config/app.php
"Attachment" => "BigBearTech\Attachments\Facades\Attachment",
Then you will need to run these commands in the terminal in order to copy the config and migration files
php artisan vendor:publish --provider="BigBearTech\Attachments\AttachmentsServiceProvider"
Before you run the migration you may want to take a look at config/attachments.php
and change the table
property to a table name that you would like to use. After that run the migration
php artisan migrate