upgrade to version 9
This commit is contained in:
@@ -166,7 +166,7 @@ return [
|
||||
* Package Service Providers...
|
||||
*/
|
||||
Darryldecode\Cart\CartServiceProvider::class,
|
||||
Devpark\PayboxGateway\Providers\PayboxServiceProvider::class,
|
||||
// Devpark\PayboxGateway\Providers\PayboxServiceProvider::class,
|
||||
|
||||
/*
|
||||
* Application Service Providers...
|
||||
|
||||
179
config/lfm.php
Normal file
179
config/lfm.php
Normal file
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Documentation for this config :
|
||||
|--------------------------------------------------------------------------
|
||||
| online => http://unisharp.github.io/laravel-filemanager/config
|
||||
| offline => vendor/unisharp/laravel-filemanager/docs/config.md
|
||||
*/
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Routing
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'use_package_routes' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Shared folder / Private folder
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If both options are set to false, then shared folder will be activated.
|
||||
|
|
||||
*/
|
||||
|
||||
'allow_private_folder' => true,
|
||||
|
||||
// Flexible way to customize client folders accessibility
|
||||
// If you want to customize client folders, publish tag="lfm_handler"
|
||||
// Then you can rewrite userField function in App\Handler\ConfigHandler class
|
||||
// And set 'user_field' to App\Handler\ConfigHandler::class
|
||||
// Ex: The private folder of user will be named as the user id.
|
||||
'private_folder_name' => UniSharp\LaravelFilemanager\Handlers\ConfigHandler::class,
|
||||
|
||||
'allow_shared_folder' => true,
|
||||
|
||||
'shared_folder_name' => 'shares',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Folder Names
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'folder_categories' => [
|
||||
'file' => [
|
||||
'folder_name' => 'files',
|
||||
'startup_view' => 'list',
|
||||
'max_size' => 50000, // size in KB
|
||||
'thumb' => true,
|
||||
'thumb_width' => 80,
|
||||
'thumb_height' => 80,
|
||||
'valid_mime' => [
|
||||
'image/jpeg',
|
||||
'image/pjpeg',
|
||||
'image/png',
|
||||
'image/gif',
|
||||
'application/pdf',
|
||||
'text/plain',
|
||||
],
|
||||
],
|
||||
'image' => [
|
||||
'folder_name' => 'photos',
|
||||
'startup_view' => 'grid',
|
||||
'max_size' => 50000, // size in KB
|
||||
'thumb' => true,
|
||||
'thumb_width' => 80,
|
||||
'thumb_height' => 80,
|
||||
'valid_mime' => [
|
||||
'image/jpeg',
|
||||
'image/pjpeg',
|
||||
'image/png',
|
||||
'image/gif',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'paginator' => [
|
||||
'perPage' => 30,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Upload / Validation
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'disk' => 'public',
|
||||
|
||||
'rename_file' => false,
|
||||
|
||||
'rename_duplicates' => false,
|
||||
|
||||
'alphanumeric_filename' => false,
|
||||
|
||||
'alphanumeric_directory' => false,
|
||||
|
||||
'should_validate_size' => false,
|
||||
|
||||
'should_validate_mime' => true,
|
||||
|
||||
// behavior on files with identical name
|
||||
// setting it to true cause old file replace with new one
|
||||
// setting it to false show `error-file-exist` error and stop upload
|
||||
'over_write_on_duplicate' => false,
|
||||
|
||||
// mimetypes of executables to prevent from uploading
|
||||
'disallowed_mimetypes' => ['text/x-php', 'text/html', 'text/plain'],
|
||||
|
||||
// Item Columns
|
||||
'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url'],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Thumbnail
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
// If true, image thumbnails would be created during upload
|
||||
'should_create_thumbnails' => true,
|
||||
|
||||
'thumb_folder_name' => 'thumbs',
|
||||
|
||||
// Create thumbnails automatically only for listed types.
|
||||
'raster_mimetypes' => [
|
||||
'image/jpeg',
|
||||
'image/pjpeg',
|
||||
'image/png',
|
||||
],
|
||||
|
||||
'thumb_img_width' => 200, // px
|
||||
|
||||
'thumb_img_height' => 200, // px
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Extension Information
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'file_type_array' => [
|
||||
'pdf' => 'Adobe Acrobat',
|
||||
'doc' => 'Microsoft Word',
|
||||
'docx' => 'Microsoft Word',
|
||||
'xls' => 'Microsoft Excel',
|
||||
'xlsx' => 'Microsoft Excel',
|
||||
'zip' => 'Archive',
|
||||
'gif' => 'GIF Image',
|
||||
'jpg' => 'JPEG Image',
|
||||
'jpeg' => 'JPEG Image',
|
||||
'png' => 'PNG Image',
|
||||
'ppt' => 'Microsoft PowerPoint',
|
||||
'pptx' => 'Microsoft PowerPoint',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| php.ini override
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These values override your php.ini settings before uploading files
|
||||
| Set these to false to ingnore and apply your php.ini settings
|
||||
|
|
||||
| Please note that the 'upload_max_filesize' & 'post_max_size'
|
||||
| directives are not supported.
|
||||
*/
|
||||
'php_ini_overrides' => [
|
||||
'memory_limit' => '256M',
|
||||
],
|
||||
];
|
||||
@@ -5,6 +5,12 @@ return [
|
||||
* Whether test environment is enabled
|
||||
*/
|
||||
'test' => env('PAYBOX_TEST', false),
|
||||
|
||||
/*
|
||||
* 00103: Paybox Direct
|
||||
* 00104: Paybox Direct Plus
|
||||
*/
|
||||
'direct_version' => env('PAYBOX_DIRECT_VERSION', '00104'),
|
||||
|
||||
/*
|
||||
* Site number (provided by Paybox)
|
||||
@@ -22,8 +28,7 @@ return [
|
||||
'id' => env('PAYBOX_ID', ''),
|
||||
|
||||
/*
|
||||
* Password for Paybox back-office (It's required for Paybox direct - when you use
|
||||
* capturing, otherwise it won't be used)
|
||||
* HMAC authentication key - it should be generated in Paybox merchant panel
|
||||
*/
|
||||
'back_office_password' => env('PAYBOX_BACK_OFFICE_PASSWORD', ''),
|
||||
|
||||
@@ -38,20 +43,44 @@ return [
|
||||
*/
|
||||
'public_key' => storage_path('paybox/pubkey.pem'),
|
||||
|
||||
/*
|
||||
* Application Prefix for REFABONNE field.
|
||||
* Prepended to wallet_id
|
||||
*/
|
||||
'wallet_prefix' => env('PAYBOX_WALLET_PREFIX', 'WALLET_'),
|
||||
|
||||
/*
|
||||
* Default return fields when going back from Paybox. You can change here keys as you want,
|
||||
* you can add also more values from ResponseField class
|
||||
*/
|
||||
'return_fields' => [
|
||||
'amount' => \Devpark\PayboxGateway\ResponseField::AMOUNT,
|
||||
'authorization_number' => \Devpark\PayboxGateway\ResponseField::AUTHORIZATION_NUMBER,
|
||||
'order_number' => \Devpark\PayboxGateway\ResponseField::ORDER_NUMBER,
|
||||
'response_code' => \Devpark\PayboxGateway\ResponseField::RESPONSE_CODE,
|
||||
'payment_type' => \Devpark\PayboxGateway\ResponseField::PAYMENT_TYPE,
|
||||
'call_number' => \Devpark\PayboxGateway\ResponseField::PAYBOX_CALL_NUMBER,
|
||||
'transaction_number' => \Devpark\PayboxGateway\ResponseField::TRANSACTION_NUMBER,
|
||||
'amount' => \Bnb\PayboxGateway\ResponseField::AMOUNT,
|
||||
'authorization_number' => \Bnb\PayboxGateway\ResponseField::AUTHORIZATION_NUMBER,
|
||||
'order_number' => \Bnb\PayboxGateway\ResponseField::ORDER_NUMBER,
|
||||
'response_code' => \Bnb\PayboxGateway\ResponseField::RESPONSE_CODE,
|
||||
'payment_type' => \Bnb\PayboxGateway\ResponseField::PAYMENT_TYPE,
|
||||
'call_number' => \Bnb\PayboxGateway\ResponseField::PAYBOX_CALL_NUMBER,
|
||||
'transaction_number' => \Bnb\PayboxGateway\ResponseField::TRANSACTION_NUMBER,
|
||||
// signature should be always last return field
|
||||
'signature' => \Devpark\PayboxGateway\ResponseField::SIGNATURE,
|
||||
'signature' => \Bnb\PayboxGateway\ResponseField::SIGNATURE,
|
||||
],
|
||||
|
||||
/*
|
||||
* Notifications settings for server-to-server communication about Paybox Direct payments status
|
||||
*/
|
||||
'notifications' => [
|
||||
'enabled' => filter_var(env('PAYBOX_NOTIFICATIONS_ENABLED', true), FILTER_VALIDATE_BOOLEAN),
|
||||
'queue' => [
|
||||
'connection' => env('PAYBOX_NOTIFICATIONS_QUEUE_CONNECTION'),
|
||||
'queue' => env('PAYBOX_NOTIFICATIONS_QUEUE_NAME'),
|
||||
],
|
||||
'retry_after' => (int)env('PAYBOX_NOTIFICATIONS_RETRY_AFTER', 60),
|
||||
'url' => env('PAYBOX_NOTIFICATIONS_URL'),
|
||||
'notify_to' => env('PAYBOX_NOTIFICATIONS_NOTIFY_TO'),
|
||||
'notify_from' => [
|
||||
'address' => env('PAYBOX_NOTIFICATIONS_NOTIFY_FROM_ADDRESS'),
|
||||
'name' => env('PAYBOX_NOTIFICATIONS_NOTIFY_FROM_NAME'),
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* Set trusted proxy IP addresses.
|
||||
*
|
||||
* Both IPv4 and IPv6 addresses are
|
||||
* supported, along with CIDR notation.
|
||||
*
|
||||
* The "*" character is syntactic sugar
|
||||
* within TrustedProxy to trust any proxy
|
||||
* that connects directly to your server,
|
||||
* a requirement when you cannot know the address
|
||||
* of your proxy (e.g. if using ELB or similar).
|
||||
*
|
||||
*/
|
||||
'proxies' => null, // [<ip addresses>,], '*', '<ip addresses>,'
|
||||
|
||||
/*
|
||||
* To trust one or more specific proxies that connect
|
||||
* directly to your server, use an array or a string separated by comma of IP addresses:
|
||||
*/
|
||||
// 'proxies' => ['192.168.1.1'],
|
||||
// 'proxies' => '192.168.1.1, 192.168.1.2',
|
||||
|
||||
/*
|
||||
* Or, to trust all proxies that connect
|
||||
* directly to your server, use a "*"
|
||||
*/
|
||||
// 'proxies' => '*',
|
||||
|
||||
/*
|
||||
* Which headers to use to detect proxy related data (For, Host, Proto, Port)
|
||||
*
|
||||
* Options include:
|
||||
*
|
||||
* - Illuminate\Http\Request::HEADER_X_FORWARDED_ALL (use all x-forwarded-* headers to establish trust)
|
||||
* - Illuminate\Http\Request::HEADER_FORWARDED (use the FORWARDED header to establish trust)
|
||||
* - Illuminate\Http\Request::HEADER_X_FORWARDED_AWS_ELB (If you are using AWS Elastic Load Balancer)
|
||||
*
|
||||
* - 'HEADER_X_FORWARDED_ALL' (use all x-forwarded-* headers to establish trust)
|
||||
* - 'HEADER_FORWARDED' (use the FORWARDED header to establish trust)
|
||||
* - 'HEADER_X_FORWARDED_AWS_ELB' (If you are using AWS Elastic Load Balancer)
|
||||
*
|
||||
* @link https://symfony.com/doc/current/deployment/proxies.html
|
||||
*/
|
||||
'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user