-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/.idea/ | ||
/vendor/ | ||
composer.lock | ||
_ide_helper.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
# Laravel 5.4+ file attachment helpers | ||
# Laravel 5.5 file attachment helpers | ||
|
||
This package allows to quickly links files to models. | ||
|
||
> Can also be installed on Laravel 5.4, [see below](#older-laravel-54-install) | ||
|
||
## Installation | ||
|
||
You can install this package via composer : | ||
You can install this package via composer. Laravel 5.5 auto discovers the service provider. | ||
|
||
composer require bnbwebexpertise/laravel-attachments | ||
|
||
|
||
### Older Laravel 5.4 install | ||
|
||
Add the service provider to your configuration : | ||
For 5.4 support install version 0.0.16 : | ||
|
||
composer require bnbwebexpertise/[email protected] | ||
|
||
Then add the service provider to your configuration : | ||
|
||
```php | ||
'providers' => [ | ||
|
@@ -21,7 +30,6 @@ Add the service provider to your configuration : | |
], | ||
``` | ||
|
||
|
||
## Configuration | ||
|
||
You can customize this package behavior by publishing the configuration file : | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,36 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"require": { | ||
"php": ">=5.6.4", | ||
"laravel/framework": ">=5.4.0", | ||
"php": ">=7.0", | ||
"illuminate/database": "5.5.x", | ||
"illuminate/routing": "5.5.x", | ||
"illuminate/support": "5.5.x", | ||
"illuminate/console": "5.5.x", | ||
"illuminate/encryption": "5.5.x", | ||
"bnbwebexpertise/php-uuid": ">=0.0.2", | ||
"doctrine/dbal": "^2.5" | ||
"doctrine/dbal": "~2.5", | ||
"nesbot/carbon": "~1.20" | ||
}, | ||
"require-dev": { | ||
"laravel/framework": "5.5.x" | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"Bnb\\Laravel\\Attachments\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.x-dev", | ||
"dev-L5.4": "0.x-dev" | ||
}, | ||
"laravel": { | ||
"providers": [ | ||
"Bnb\\Laravel\\Attachments\\AttachmentsServiceProvider" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters