updated mediable package

This commit is contained in:
Denis Duliçi
2021-05-08 19:09:55 +03:00
parent 8c96b61e28
commit 8651bc6c9b
5 changed files with 98 additions and 106 deletions

View File

@@ -6,7 +6,12 @@ return [
*
* Should extend `Plank\Mediable\Media`
*/
'model' => env('MEDIABLE_MODEL', 'Plank\Mediable\Media'),
'model' => env('MEDIABLE_MODEL', App\Models\Common\Media::class),
/*
* Name to be used for mediables joining table
*/
'mediables_table' => env('MEDIABLE_TABLE', 'mediables'),
/*
* Filesystem disk to use if none is specified
@@ -151,7 +156,7 @@ return [
'text/json',
'application/json',
'application/msword',
'application/application/vnd.openxmlformats-officedocument.wordprocessingml.document'
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
],
'extensions' => [
'doc',
@@ -174,17 +179,17 @@ return [
],
Plank\Mediable\Media::TYPE_PRESENTATION => [
'mime_types' =>
[
'application/vnd.ms-powerpoint',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.openxmlformats-officedocument.presentationml.slideshow'
],
[
'application/vnd.ms-powerpoint',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.openxmlformats-officedocument.presentationml.slideshow'
],
'extensions' =>
[
'ppt',
'pptx',
'ppsx',
]
[
'ppt',
'pptx',
'ppsx',
]
],
],
@@ -202,7 +207,7 @@ return [
'pattern' => [
'^https?://' => Plank\Mediable\SourceAdapters\RemoteUrlAdapter::class,
'^/' => Plank\Mediable\SourceAdapters\LocalPathAdapter::class,
'^[a-zA-Z]:\\' => Plank\Mediable\SourceAdapters\LocalPathAdapter::class
'^[a-zA-Z]:\\\\' => Plank\Mediable\SourceAdapters\LocalPathAdapter::class
],
],