From 42f361540c9b6afbe5bc93cb1ab1c3573e760b34 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 28 Aug 2026 01:02:09 -0600 Subject: [PATCH] Pint config/ --- config/api.php | 8 +- config/app.php | 3 +- config/autospam.php | 9 +- config/backup.php | 44 ++++--- config/broadcasting.php | 14 +-- config/captcha.php | 20 +-- config/cors.php | 2 +- config/costar.php | 46 ++++--- config/debugbar.php | 64 +++++----- config/exp.php | 32 ++--- config/federation.php | 6 +- config/filesystems.php | 54 ++++---- config/groups.php | 4 +- config/hashids.php | 4 +- config/hashing.php | 4 +- config/horizon.php | 34 ++--- config/image-optimizer.php | 4 +- config/image.php | 2 +- config/import.php | 9 +- config/livestreaming.php | 48 +++---- config/logging.php | 28 ++--- config/media.php | 2 +- config/pixelfed.php | 2 +- config/queue.php | 26 ++-- config/remote-auth.php | 8 +- config/routes.php | 4 +- config/security.php | 6 +- config/services.php | 4 +- config/snowflake.php | 1 + config/telescope.php | 252 ++++++++++++++++++------------------- config/trending.php | 4 +- config/webpush.php | 4 +- config/websockets.php | 43 ++++--- 33 files changed, 412 insertions(+), 383 deletions(-) diff --git a/config/api.php b/config/api.php index 13003bc26..aa4fd1860 100644 --- a/config/api.php +++ b/config/api.php @@ -11,8 +11,8 @@ return [ 'ip_enabled' => env('PF_API_RL_V1DOT1_ACCT_U2ID_BY_IP_ENABLED', false), 'ip_limit' => env('PF_API_RL_V1DOT1_ACCT_U2ID_BY_IP_LIMIT', 30), 'ip_decay' => env('PF_API_RL_V1DOT1_ACCT_U2ID_BY_IP_DECAY', 120), - ] - ] - ] - ] + ], + ], + ], + ], ]; diff --git a/config/app.php b/config/app.php index db1d2c831..a6f5dbb1c 100644 --- a/config/app.php +++ b/config/app.php @@ -1,6 +1,7 @@ [ - 'App' => Illuminate\Support\Facades\App::class, + 'App' => App::class, 'Artisan' => Artisan::class, 'Auth' => Auth::class, 'Blade' => Blade::class, diff --git a/config/autospam.php b/config/autospam.php index bc0ce4681..580686048 100644 --- a/config/autospam.php +++ b/config/autospam.php @@ -2,7 +2,7 @@ return [ - /* + /* |-------------------------------------------------------------------------- | Enable Autospam |-------------------------------------------------------------------------- @@ -16,7 +16,6 @@ return [ 'enabled' => env('PF_BOUNCER_ENABLED', false), - /* |-------------------------------------------------------------------------- | Ignored Tokens @@ -31,12 +30,12 @@ return [ 'ignored_tokens' => env('PF_AUTOSPAM_IGNORED_TOKENS', 'the,a,of,and'), 'nlp' => [ - 'enabled' => false, - 'spam_sample_limit' => env('PF_AUTOSPAM_NLP_SPAM_SAMPLE_LIMIT', 200), + 'enabled' => false, + 'spam_sample_limit' => env('PF_AUTOSPAM_NLP_SPAM_SAMPLE_LIMIT', 200), ], 'live_filters' => [ 'enabled' => env('PF_AUTOSPAM_LIVE_FILTERS_ENABLED', false), 'filters' => env('PF_AUTOSPAM_LIVE_FILTERS_CSV', ''), - ] + ], ]; diff --git a/config/backup.php b/config/backup.php index ec51108a1..3e9aff72f 100644 --- a/config/backup.php +++ b/config/backup.php @@ -1,5 +1,17 @@ [ @@ -59,11 +71,11 @@ return [ */ 'mysql' => [ - 'dump' => [ - 'useSingleTransaction' => true, - 'useQuick' => true - ], - ], + 'dump' => [ + 'useSingleTransaction' => true, + 'useQuick' => true, + ], + ], 'databases' => [ 'mysql', @@ -81,7 +93,7 @@ return [ * * If you do not want any compressor at all, set it to null. */ - 'database_dump_compressor' => Spatie\DbDumper\Compressors\Bzip2Compressor::class, + 'database_dump_compressor' => Bzip2Compressor::class, /* * The file extension used for the database dump files. @@ -137,19 +149,19 @@ return [ 'notifications' => [ 'notifications' => [ - \Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => [], - \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => [], - \Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => [], - \Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => [], - \Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => [], - \Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => [], + BackupHasFailedNotification::class => [], + UnhealthyBackupWasFoundNotification::class => [], + CleanupHasFailedNotification::class => [], + BackupWasSuccessfulNotification::class => [], + HealthyBackupWasFoundNotification::class => [], + CleanupWasSuccessfulNotification::class => [], ], /* * Here you can specify the notifiable to which the notifications should be sent. The default * notifiable will use the variables specified in this config file. */ - 'notifiable' => \Spatie\Backup\Notifications\Notifiable::class, + 'notifiable' => Notifiable::class, 'mail' => [ 'to' => env('BACKUP_EMAIL_ADDRESS', 'noreply@example.com'), @@ -199,8 +211,8 @@ return [ 'name' => env('APP_NAME', 'pixelfed-backup'), 'disks' => ['local'], 'health_checks' => [ - \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1, - \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000, + MaximumAgeInDays::class => 1, + MaximumStorageInMegabytes::class => 5000, ], ], ], @@ -215,7 +227,7 @@ return [ * No matter how you configure it the default strategy will never * delete the newest backup. */ - 'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class, + 'strategy' => DefaultStrategy::class, 'default_strategy' => [ diff --git a/config/broadcasting.php b/config/broadcasting.php index ff4cdfa70..3f1c9a7fe 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -31,21 +31,21 @@ return [ 'connections' => [ 'pusher' => [ - 'driver' => 'pusher', - 'key' => env('PUSHER_APP_KEY'), - 'secret' => env('PUSHER_APP_SECRET'), - 'app_id' => env('PUSHER_APP_ID'), + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), 'options' => [ - 'cluster' => env('PUSHER_APP_CLUSTER'), + 'cluster' => env('PUSHER_APP_CLUSTER'), 'encrypted' => env('PUSHER_APP_ENCRYPTED', false), 'host' => env('PUSHER_HOST', env('APP_DOMAIN')), 'port' => env('PUSHER_PORT', 443), - 'scheme' => env('PUSHER_SCHEME', 'https') + 'scheme' => env('PUSHER_SCHEME', 'https'), ], ], 'redis' => [ - 'driver' => 'redis', + 'driver' => 'redis', 'connection' => 'default', ], diff --git a/config/captcha.php b/config/captcha.php index 586f0d77a..ef552a175 100644 --- a/config/captcha.php +++ b/config/captcha.php @@ -1,27 +1,29 @@ env('CAPTCHA_ENABLED', false), 'secret' => env('CAPTCHA_SECRET', 'default_secret'), 'sitekey' => env('CAPTCHA_SITEKEY', 'default_sitekey'), - 'http_client' => \Buzz\LaravelHCaptcha\HttpClient::class, + 'http_client' => HttpClient::class, 'options' => [ 'multiple' => false, 'lang' => app()->getLocale(), ], 'attributes' => [ - 'theme' => 'light' + 'theme' => 'light', ], 'active' => [ - 'login' => env('CAPTCHA_ENABLED_ON_LOGIN', false), - 'register' => env('CAPTCHA_ENABLED_ON_REGISTER', false) + 'login' => env('CAPTCHA_ENABLED_ON_LOGIN', false), + 'register' => env('CAPTCHA_ENABLED_ON_REGISTER', false), ], 'triggers' => [ - 'login' => [ - 'enabled' => env('CAPTCHA_TRIGGERS_LOGIN_ENABLED', false), - 'attempts' => env('CAPTCHA_TRIGGERS_LOGIN_ATTEMPTS', 2) - ] - ] + 'login' => [ + 'enabled' => env('CAPTCHA_TRIGGERS_LOGIN_ENABLED', false), + 'attempts' => env('CAPTCHA_TRIGGERS_LOGIN_ATTEMPTS', 2), + ], + ], ]; diff --git a/config/cors.php b/config/cors.php index ef8fa50f5..63f300533 100644 --- a/config/cors.php +++ b/config/cors.php @@ -24,7 +24,7 @@ return [ 'paths' => [ '.well-known/*', 'api/*', - 'oauth/*' + 'oauth/*', ], /* diff --git a/config/costar.php b/config/costar.php index ac484b021..a1a4ece2f 100644 --- a/config/costar.php +++ b/config/costar.php @@ -1,33 +1,31 @@ false, - - 'domain' => [ - 'block' => env('CS_BLOCKED_DOMAINS', null) ? explode(',', env('CS_BLOCKED_DOMAINS')) : null, - 'cw' => env('CS_CW_DOMAINS', null) ? explode(',', env('CS_CW_DOMAINS')) : null, - 'unlisted' => env('CS_UNLISTED_DOMAINS', null) ? explode(',', env('CS_UNLISTED_DOMAINS')) : null, - ], - - 'keyword' => [ - 'block' => env('CS_BLOCKED_KEYWORDS', null) ? explode(',', env('CS_BLOCKED_KEYWORDS')) : null, - 'cw' => env('CS_CW_KEYWORDS', null) ? explode(',', env('CS_CW_KEYWORDS')) : null, - 'unlisted' => env('CS_UNLISTED_KEYWORDS', null) ? explode(',', env('CS_UNLISTED_KEYWORDS')) : null, - ], - - 'actor' => [ - 'block' => env('CS_BLOCKED_ACTOR', null) ? explode(',', env('CS_BLOCKED_ACTOR')) : null, - 'cw' => env('CS_CW_ACTOR', null) ? explode(',', env('CS_CW_ACTOR')) : null, - 'unlisted' => env('CS_UNLISTED_ACTOR', null) ? explode(',', env('CS_UNLISTED_ACTOR')) : null, - ] - -]; \ No newline at end of file + 'enabled' => false, + + 'domain' => [ + 'block' => env('CS_BLOCKED_DOMAINS', null) ? explode(',', env('CS_BLOCKED_DOMAINS')) : null, + 'cw' => env('CS_CW_DOMAINS', null) ? explode(',', env('CS_CW_DOMAINS')) : null, + 'unlisted' => env('CS_UNLISTED_DOMAINS', null) ? explode(',', env('CS_UNLISTED_DOMAINS')) : null, + ], + + 'keyword' => [ + 'block' => env('CS_BLOCKED_KEYWORDS', null) ? explode(',', env('CS_BLOCKED_KEYWORDS')) : null, + 'cw' => env('CS_CW_KEYWORDS', null) ? explode(',', env('CS_CW_KEYWORDS')) : null, + 'unlisted' => env('CS_UNLISTED_KEYWORDS', null) ? explode(',', env('CS_UNLISTED_KEYWORDS')) : null, + ], + + 'actor' => [ + 'block' => env('CS_BLOCKED_ACTOR', null) ? explode(',', env('CS_BLOCKED_ACTOR')) : null, + 'cw' => env('CS_CW_ACTOR', null) ? explode(',', env('CS_CW_ACTOR')) : null, + 'unlisted' => env('CS_UNLISTED_ACTOR', null) ? explode(',', env('CS_UNLISTED_ACTOR')) : null, + ], + +]; diff --git a/config/debugbar.php b/config/debugbar.php index 63a4e97e9..36f6dd1b1 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -15,7 +15,7 @@ return [ */ 'enabled' => false, - 'except' => [ + 'except' => [ // ], @@ -32,11 +32,11 @@ return [ | */ 'storage' => [ - 'enabled' => false, - 'driver' => 'file', // redis, file, pdo, custom - 'path' => storage_path('debugbar'), // For file driver + 'enabled' => false, + 'driver' => 'file', // redis, file, pdo, custom + 'path' => storage_path('debugbar'), // For file driver 'connection' => null, // Leave null for default connection (Redis/PDO) - 'provider' => '', // Instance of StorageInterface for custom driver + 'provider' => '', // Instance of StorageInterface for custom driver ], /* @@ -66,7 +66,7 @@ return [ | Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools. */ - 'capture_ajax' => true, + 'capture_ajax' => true, 'add_ajax_timing' => false, /* @@ -101,27 +101,27 @@ return [ */ 'collectors' => [ - 'phpinfo' => true, // Php version - 'messages' => true, // Messages - 'time' => true, // Time Datalogger - 'memory' => true, // Memory usage - 'exceptions' => true, // Exception displayer - 'log' => true, // Logs from Monolog (merged in messages if enabled) - 'db' => true, // Show database (PDO) queries and bindings - 'views' => true, // Views with their data - 'route' => true, // Current route information - 'auth' => true, // Display Laravel authentication status - 'gate' => true, // Display Laravel Gate checks - 'session' => true, // Display session data + 'phpinfo' => true, // Php version + 'messages' => true, // Messages + 'time' => true, // Time Datalogger + 'memory' => true, // Memory usage + 'exceptions' => true, // Exception displayer + 'log' => true, // Logs from Monolog (merged in messages if enabled) + 'db' => true, // Show database (PDO) queries and bindings + 'views' => true, // Views with their data + 'route' => true, // Current route information + 'auth' => true, // Display Laravel authentication status + 'gate' => true, // Display Laravel Gate checks + 'session' => true, // Display session data 'symfony_request' => true, // Only one can be enabled.. - 'mail' => true, // Catch mail messages - 'laravel' => false, // Laravel version and environment - 'events' => false, // All events fired + 'mail' => true, // Catch mail messages + 'laravel' => false, // Laravel version and environment + 'events' => false, // All events fired 'default_request' => false, // Regular or special Symfony request logger - 'logs' => false, // Add the latest log messages - 'files' => false, // Show the included files - 'config' => false, // Display config settings - 'cache' => false, // Display cache events + 'logs' => false, // Add the latest log messages + 'files' => false, // Show the included files + 'config' => false, // Display config settings + 'cache' => false, // Display cache events ], /* @@ -138,20 +138,20 @@ return [ 'show_name' => true, // Also show the users name/email in the debugbar ], 'db' => [ - 'with_params' => true, // Render SQL with the parameters substituted - 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. - 'timeline' => false, // Add the queries to the timeline - 'explain' => [ // Show EXPLAIN output on queries + 'with_params' => true, // Render SQL with the parameters substituted + 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. + 'timeline' => false, // Add the queries to the timeline + 'explain' => [ // Show EXPLAIN output on queries 'enabled' => false, - 'types' => ['SELECT'], // ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+ + 'types' => ['SELECT'], // ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+ ], - 'hints' => true, // Show hints for common mistakes + 'hints' => true, // Show hints for common mistakes ], 'mail' => [ 'full_log' => false, ], 'views' => [ - 'data' => false, //Note: Can slow down the application, because the data can be quite large.. + 'data' => false, // Note: Can slow down the application, because the data can be quite large.. ], 'route' => [ 'label' => true, // show complete route on bar diff --git a/config/exp.php b/config/exp.php index c0b75cf5f..701dbc863 100644 --- a/config/exp.php +++ b/config/exp.php @@ -7,28 +7,28 @@ */ return [ - // Text only posts (alpha) - 'top' => env('EXP_TOP', false), + // Text only posts (alpha) + 'top' => env('EXP_TOP', false), - // Poll statuses (alpha) - 'polls' => env('EXP_POLLS', false), + // Poll statuses (alpha) + 'polls' => env('EXP_POLLS', false), - // Cached public timeline for larger instances (beta) - 'cached_public_timeline' => env('EXP_CPT', false), + // Cached public timeline for larger instances (beta) + 'cached_public_timeline' => env('EXP_CPT', false), - 'cached_home_timeline' => env('EXP_CHT', false), + 'cached_home_timeline' => env('EXP_CHT', false), - // Groups (unreleased) - 'gps' => env('EXP_GPS', false), + // Groups (unreleased) + 'gps' => env('EXP_GPS', false), - // Single page application (beta) - 'spa' => true, + // Single page application (beta) + 'spa' => true, - // Enforce Mastoapi Compatibility (alpha) - 'emc' => env('EXP_EMC', true), + // Enforce Mastoapi Compatibility (alpha) + 'emc' => env('EXP_EMC', true), - // HLS Live Streaming - 'hls' => env('HLS_LIVE', false), + // HLS Live Streaming + 'hls' => env('HLS_LIVE', false), - 'autolink' => env('EXP_AUTOLINK_V2', false), + 'autolink' => env('EXP_AUTOLINK_V2', false), ]; diff --git a/config/federation.php b/config/federation.php index a4c9e61a7..c424d3a4e 100644 --- a/config/federation.php +++ b/config/federation.php @@ -23,8 +23,8 @@ return [ 'concurrency' => env('ACTIVITYPUB_DELIVERY_CONCURRENCY', 10), 'logger' => [ 'enabled' => env('AP_LOGGER_ENABLED', false), - 'driver' => 'log' - ] + 'driver' => 'log', + ], ], 'ingest' => [ @@ -47,7 +47,7 @@ return [ ], 'webfinger' => [ - 'enabled' => env('WEBFINGER', true) + 'enabled' => env('WEBFINGER', true), ], 'network_timeline' => env('PF_NETWORK_TIMELINE', true), diff --git a/config/filesystems.php b/config/filesystems.php index 33964edfc..81ee0547b 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -45,7 +45,7 @@ return [ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => storage_path('app'), 'permissions' => [ 'file' => [ 'public' => 0644, @@ -59,21 +59,21 @@ return [ ], 'public' => [ - 'driver' => 'local', - 'root' => storage_path('app/public'), - 'url' => env('APP_URL').'/storage', + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', 'visibility' => 'public', 'throw' => true, ], 's3' => [ - 'driver' => 's3', - 'key' => env('AWS_ACCESS_KEY_ID'), - 'secret' => env('AWS_SECRET_ACCESS_KEY'), - 'region' => env('AWS_DEFAULT_REGION'), - 'bucket' => env('AWS_BUCKET'), + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), 'visibility' => env('AWS_VISIBILITY', 'public'), - 'url' => env('AWS_URL'), + 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 'throw' => true, @@ -84,28 +84,28 @@ return [ ], 'alt-primary' => [ - 'enabled' => env('ALT_PRI_ENABLED', false), - 'driver' => 's3', - 'key' => env('ALT_PRI_AWS_ACCESS_KEY_ID'), - 'secret' => env('ALT_PRI_AWS_SECRET_ACCESS_KEY'), - 'region' => env('ALT_PRI_AWS_DEFAULT_REGION'), - 'bucket' => env('ALT_PRI_AWS_BUCKET'), + 'enabled' => env('ALT_PRI_ENABLED', false), + 'driver' => 's3', + 'key' => env('ALT_PRI_AWS_ACCESS_KEY_ID'), + 'secret' => env('ALT_PRI_AWS_SECRET_ACCESS_KEY'), + 'region' => env('ALT_PRI_AWS_DEFAULT_REGION'), + 'bucket' => env('ALT_PRI_AWS_BUCKET'), 'visibility' => 'public', - 'url' => env('ALT_PRI_AWS_URL'), + 'url' => env('ALT_PRI_AWS_URL'), 'endpoint' => env('ALT_PRI_AWS_ENDPOINT'), 'use_path_style_endpoint' => env('ALT_PRI_AWS_USE_PATH_STYLE_ENDPOINT', false), 'throw' => true, ], 'alt-secondary' => [ - 'enabled' => env('ALT_SEC_ENABLED', false), - 'driver' => 's3', - 'key' => env('ALT_SEC_AWS_ACCESS_KEY_ID'), - 'secret' => env('ALT_SEC_AWS_SECRET_ACCESS_KEY'), - 'region' => env('ALT_SEC_AWS_DEFAULT_REGION'), - 'bucket' => env('ALT_SEC_AWS_BUCKET'), + 'enabled' => env('ALT_SEC_ENABLED', false), + 'driver' => 's3', + 'key' => env('ALT_SEC_AWS_ACCESS_KEY_ID'), + 'secret' => env('ALT_SEC_AWS_SECRET_ACCESS_KEY'), + 'region' => env('ALT_SEC_AWS_DEFAULT_REGION'), + 'bucket' => env('ALT_SEC_AWS_BUCKET'), 'visibility' => 'public', - 'url' => env('ALT_SEC_AWS_URL'), + 'url' => env('ALT_SEC_AWS_URL'), 'endpoint' => env('ALT_SEC_AWS_ENDPOINT'), 'use_path_style_endpoint' => env('ALT_SEC_AWS_USE_PATH_STYLE_ENDPOINT', false), 'throw' => true, @@ -120,9 +120,9 @@ return [ 'bucket' => env('DO_SPACES_BUCKET'), 'visibility' => 'public', 'options' => [ - 'CacheControl' => 'max-age=31536000' + 'CacheControl' => 'max-age=31536000', ], - 'root' => env('DO_SPACES_ROOT',''), + 'root' => env('DO_SPACES_ROOT', ''), 'throw' => true, 'url' => env('AWS_URL'), ], @@ -132,7 +132,7 @@ return [ 'visibility' => 'private', 'root' => env('PF_BACKUP_DRIVER', 'local') == 'local' ? storage_path('app/backups/') : - env('PF_BACKUP_ROOT','/'), + env('PF_BACKUP_ROOT', '/'), 'key' => env('PF_BACKUP_KEY'), 'secret' => env('PF_BACKUP_SECRET'), 'endpoint' => env('PF_BACKUP_ENDPOINT'), diff --git a/config/groups.php b/config/groups.php index 24513e502..af702a045 100644 --- a/config/groups.php +++ b/config/groups.php @@ -8,6 +8,6 @@ return [ 'create_group' => [ 'admins' => env('GROUPS_ACL_CREATE_ADMINS', true), 'users' => env('GROUPS_ACL_CREATE_USERS', true), - ] - ] + ], + ], ]; diff --git a/config/hashids.php b/config/hashids.php index ae2857556..bdf4e6674 100644 --- a/config/hashids.php +++ b/config/hashids.php @@ -40,12 +40,12 @@ return [ 'connections' => [ 'main' => [ - 'salt' => env('APP_HASHID_SALT', 'v3MsJ1Hgnlma8YPrD3f4sW6vAn6zLnkuh6vOpKnR5IKkLqDGIk7TCADS2igpEN4ADrtXkkzV2E8HBfzpz7BreDzQqVOYDMeb4cJ1xhDhDwDeicZVUPyrxihHDaMWpTsP'), + 'salt' => env('APP_HASHID_SALT', 'v3MsJ1Hgnlma8YPrD3f4sW6vAn6zLnkuh6vOpKnR5IKkLqDGIk7TCADS2igpEN4ADrtXkkzV2E8HBfzpz7BreDzQqVOYDMeb4cJ1xhDhDwDeicZVUPyrxihHDaMWpTsP'), 'length' => '24', ], 'alternative' => [ - 'salt' => 'your-salt-string', + 'salt' => 'your-salt-string', 'length' => 'your-length-integer', ], diff --git a/config/hashing.php b/config/hashing.php index 81cd9df0b..cad5dd1ec 100644 --- a/config/hashing.php +++ b/config/hashing.php @@ -44,9 +44,9 @@ return [ */ 'argon' => [ - 'memory' => env('ARGON_MEM', 1024), + 'memory' => env('ARGON_MEM', 1024), 'threads' => env('ARGON_THREADS', 2), - 'time' => env('ARGON_TIME', 2), + 'time' => env('ARGON_TIME', 2), ], ]; diff --git a/config/horizon.php b/config/horizon.php index 5f7b31c13..5feb487a5 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -176,29 +176,29 @@ return [ 'environments' => [ 'production' => [ 'supervisor-1' => [ - 'connection' => 'redis', - 'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups', 'adelete', 'move', 'pushnotify'], - 'balance' => env('HORIZON_BALANCE_STRATEGY', 'auto'), - 'minProcesses' => env('HORIZON_MIN_PROCESSES', 1), - 'maxProcesses' => env('HORIZON_MAX_PROCESSES', 20), - 'memory' => env('HORIZON_SUPERVISOR_MEMORY', 64), - 'tries' => env('HORIZON_SUPERVISOR_TRIES', 3), - 'nice' => env('HORIZON_SUPERVISOR_NICE', 0), - 'timeout' => env('HORIZON_SUPERVISOR_TIMEOUT', 300), + 'connection' => 'redis', + 'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups', 'adelete', 'move', 'pushnotify'], + 'balance' => env('HORIZON_BALANCE_STRATEGY', 'auto'), + 'minProcesses' => env('HORIZON_MIN_PROCESSES', 1), + 'maxProcesses' => env('HORIZON_MAX_PROCESSES', 20), + 'memory' => env('HORIZON_SUPERVISOR_MEMORY', 64), + 'tries' => env('HORIZON_SUPERVISOR_TRIES', 3), + 'nice' => env('HORIZON_SUPERVISOR_NICE', 0), + 'timeout' => env('HORIZON_SUPERVISOR_TIMEOUT', 300), ], ], 'local' => [ 'supervisor-1' => [ - 'connection' => 'redis', - 'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups', 'adelete', 'move', 'pushnotify'], - 'balance' => 'auto', + 'connection' => 'redis', + 'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups', 'adelete', 'move', 'pushnotify'], + 'balance' => 'auto', 'minProcesses' => 1, - 'maxProcesses' => 20, - 'memory' => 128, - 'tries' => 3, - 'nice' => 0, - 'timeout' => 300 + 'maxProcesses' => 20, + 'memory' => 128, + 'tries' => 3, + 'nice' => 0, + 'timeout' => 300, ], ], ], diff --git a/config/image-optimizer.php b/config/image-optimizer.php index a05026eda..d10a46bce 100644 --- a/config/image-optimizer.php +++ b/config/image-optimizer.php @@ -1,11 +1,11 @@ [ Jpegoptim::class => [ - '-m' . (int) env('IMAGE_QUALITY', 80), + '-m'.(int) env('IMAGE_QUALITY', 80), '--strip-exif', // this strips out EXIF data '--all-progressive', // this will make sure the resulting image is a progressive one ], diff --git a/config/image.php b/config/image.php index 05cd72831..2df5066b3 100644 --- a/config/image.php +++ b/config/image.php @@ -43,5 +43,5 @@ return [ 'decodeAnimation' => true, 'backgroundColor' => env('IMAGE_BACKGROUNDCOLOR', 'ffffff'), 'strip' => env('IMAGE_STRIP', true), - ] + ], ]; diff --git a/config/import.php b/config/import.php index 58ab4afe6..4d7dde8a3 100644 --- a/config/import.php +++ b/config/import.php @@ -47,10 +47,7 @@ return [ 'storage' => [ 'cloud' => [ 'enabled' => env('PF_IMPORT_IG_CLOUD_STORAGE', env('PF_ENABLE_CLOUD', false)), - ] - ] - ] + ], + ], + ], ]; - - - diff --git a/config/livestreaming.php b/config/livestreaming.php index 8a3be4f99..b107a0feb 100644 --- a/config/livestreaming.php +++ b/config/livestreaming.php @@ -1,33 +1,33 @@ env('HLS_LIVE', false), + 'enabled' => env('HLS_LIVE', false), - 'server' => [ - 'host' => env('HLS_LIVE_HOST', env('APP_DOMAIN', 'localhost')), - 'port' => env('HLS_LIVE_PORT', 1935), - 'path' => env('HLS_LIVE_PATH', 'live') - ], + 'server' => [ + 'host' => env('HLS_LIVE_HOST', env('APP_DOMAIN', 'localhost')), + 'port' => env('HLS_LIVE_PORT', 1935), + 'path' => env('HLS_LIVE_PATH', 'live'), + ], - 'broadcast' => [ - 'delete_token_after_finished' => (bool) env('HLS_LIVE_BROADCAST_DELETE_TOKEN_AFTER', true), - 'max_duration' => (int) env('HLS_LIVE_BROADCAST_MAX_DURATION', 60), - 'max_active' => (int) env('HLS_LIVE_BROADCAST_MAX_ACTIVE', 10), + 'broadcast' => [ + 'delete_token_after_finished' => (bool) env('HLS_LIVE_BROADCAST_DELETE_TOKEN_AFTER', true), + 'max_duration' => (int) env('HLS_LIVE_BROADCAST_MAX_DURATION', 60), + 'max_active' => (int) env('HLS_LIVE_BROADCAST_MAX_ACTIVE', 10), - 'limits' => [ - 'enabled' => (bool) env('HLS_LIVE_BROADCAST_LIMITS', true), - 'min_follower_count' => (int) env('HLS_LIVE_BROADCAST_LIMITS_MIN_FOLLOWERS', 100), - 'min_account_age' => (int) env('HLS_LIVE_BROADCAST_LIMITS_MIN_ACCOUNT_AGE', 14), - 'admins_only' => (bool) env('HLS_LIVE_BROADCAST_LIMITS_ADMINS_ONLY', true) - ], + 'limits' => [ + 'enabled' => (bool) env('HLS_LIVE_BROADCAST_LIMITS', true), + 'min_follower_count' => (int) env('HLS_LIVE_BROADCAST_LIMITS_MIN_FOLLOWERS', 100), + 'min_account_age' => (int) env('HLS_LIVE_BROADCAST_LIMITS_MIN_ACCOUNT_AGE', 14), + 'admins_only' => (bool) env('HLS_LIVE_BROADCAST_LIMITS_ADMINS_ONLY', true), + ], - 'sources' => [ - 'app' => (bool) env('HLS_LIVE_BROADCAST_SOURCE_APP', false), - 'web' => (bool) env('HLS_LIVE_BROADCAST_SOURCE_WEB', false) - ] - ], + 'sources' => [ + 'app' => (bool) env('HLS_LIVE_BROADCAST_SOURCE_APP', false), + 'web' => (bool) env('HLS_LIVE_BROADCAST_SOURCE_WEB', false), + ], + ], - 'comments' => [ - 'max_falloff' => env('HLS_LIVE_COMMENTS_MAX_FALLOFF', 50) - ], + 'comments' => [ + 'max_falloff' => env('HLS_LIVE_COMMENTS_MAX_FALLOFF', 50), + ], ]; diff --git a/config/logging.php b/config/logging.php index e25a4a344..001bf2d10 100644 --- a/config/logging.php +++ b/config/logging.php @@ -35,38 +35,38 @@ return [ 'channels' => [ 'stack' => [ - 'driver' => 'stack', + 'driver' => 'stack', 'channels' => ['daily'], 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', - 'path' => storage_path('logs/laravel.log'), + 'path' => storage_path('logs/laravel.log'), 'level' => env('LOG_LEVEL', 'debug'), ], 'daily' => [ 'driver' => 'daily', - 'path' => storage_path('logs/laravel.log'), - 'level' => 'debug', - 'days' => 14, + 'path' => storage_path('logs/laravel.log'), + 'level' => 'debug', + 'days' => 14, ], 'slack' => [ - 'driver' => 'slack', - 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', - 'emoji' => ':boom:', - 'level' => 'critical', + 'emoji' => ':boom:', + 'level' => 'critical', ], 'stderr' => [ - 'driver' => 'monolog', + 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), - 'with' => [ + 'with' => [ 'stream' => 'php://stderr', ], ], @@ -78,7 +78,7 @@ return [ 'errorlog' => [ 'driver' => 'errorlog', - 'level' => 'debug', + 'level' => 'debug', ], 'null' => [ @@ -93,8 +93,8 @@ return [ 'media' => [ 'driver' => 'single', 'bubble' => false, - 'path' => storage_path('logs/media.log'), - 'level' => 'debug' + 'path' => storage_path('logs/media.log'), + 'level' => 'debug', ], ], diff --git a/config/media.php b/config/media.php index 5e3b32ae6..d08c4b7bf 100644 --- a/config/media.php +++ b/config/media.php @@ -60,5 +60,5 @@ return [ 'tracker' => env('MEDIA_HLS_P2P_TRACKER', 'wss://tracker.webtorrent.dev'), 'ice' => env('MEDIA_HLS_P2P_ICE_SERVER', 'stun:stun.l.google.com:19302'), - ] + ], ]; diff --git a/config/pixelfed.php b/config/pixelfed.php index 3cbaf24e4..16ab0b3c2 100644 --- a/config/pixelfed.php +++ b/config/pixelfed.php @@ -34,7 +34,7 @@ return [ | */ 'nodeinfo' => [ - 'url' => config('app.url') . '/api/nodeinfo/2.0.json', + 'url' => config('app.url').'/api/nodeinfo/2.0.json', ], /* diff --git a/config/queue.php b/config/queue.php index fc4824410..c3e6507b9 100644 --- a/config/queue.php +++ b/config/queue.php @@ -35,34 +35,34 @@ return [ ], 'database' => [ - 'driver' => 'database', - 'table' => 'jobs', - 'queue' => 'default', + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', 'retry_after' => 90, ], 'beanstalkd' => [ - 'driver' => 'beanstalkd', - 'host' => 'localhost', - 'queue' => 'default', + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', 'retry_after' => 90, ], 'sqs' => [ 'driver' => 'sqs', - 'key' => env('SQS_KEY', 'your-public-key'), + 'key' => env('SQS_KEY', 'your-public-key'), 'secret' => env('SQS_SECRET', 'your-secret-key'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), - 'queue' => env('SQS_QUEUE', 'your-queue-name'), + 'queue' => env('SQS_QUEUE', 'your-queue-name'), 'region' => env('SQS_REGION', 'us-east-1'), ], 'redis' => [ - 'driver' => 'redis', - 'connection' => 'default', - 'queue' => 'default', + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => 'default', 'retry_after' => 1800, - 'block_for' => null, + 'block_for' => null, 'after_commit' => true, ], @@ -81,7 +81,7 @@ return [ 'failed' => [ 'database' => env('DB_CONNECTION', 'mysql'), - 'table' => 'failed_jobs', + 'table' => 'failed_jobs', ], ]; diff --git a/config/remote-auth.php b/config/remote-auth.php index 353e59c14..3e82553fb 100644 --- a/config/remote-auth.php +++ b/config/remote-auth.php @@ -51,8 +51,8 @@ return [ * abusing this */ 'enabled' => env('PF_LOGIN_WITH_MASTODON_ENFORCE_MAX_USES', true), - 'limit' => env('PF_LOGIN_WITH_MASTODON_MAX_USES_LIMIT', 3) - ] + 'limit' => env('PF_LOGIN_WITH_MASTODON_MAX_USES_LIMIT', 3), + ], ], 'oidc' => [ @@ -83,7 +83,7 @@ return [ * The scopes to request from the OIDC provider, typically including * 'openid' (required), 'profile', and 'email' for basic user information */ - 'scopes' => env('PF_OIDC_SCOPES', 'openid profile email'), + 'scopes' => env('PF_OIDC_SCOPES', 'openid profile email'), /* * Authorization URL @@ -119,7 +119,7 @@ return [ * The field from the OIDC profile response to use as the username * Default is 'preferred_username' but can be changed based on your provider */ - 'field_username' => env('PF_OIDC_USERNAME_FIELD', "preferred_username"), + 'field_username' => env('PF_OIDC_USERNAME_FIELD', 'preferred_username'), /* * ID Field diff --git a/config/routes.php b/config/routes.php index ce2067944..9a9a5e20a 100644 --- a/config/routes.php +++ b/config/routes.php @@ -2,7 +2,7 @@ return [ 'hashtag' => [ - 'base' => config('app.url').'/discover/tags/', - 'search' => config('app.url').'/discover/tags/', + 'base' => config('app.url').'/discover/tags/', + 'search' => config('app.url').'/discover/tags/', ], ]; diff --git a/config/security.php b/config/security.php index 929c05214..7af53d1e9 100644 --- a/config/security.php +++ b/config/security.php @@ -16,7 +16,7 @@ return [ 'daily' => env('PF_AUTH_FORGOT_EMAIL_MAX_DAILY', 100), 'weekly' => env('PF_AUTH_FORGOT_EMAIL_MAX_WEEKLY', 200), 'monthly' => env('PF_AUTH_FORGOT_EMAIL_MAX_MONTHLY', 500), - ] - ] - ] + ], + ], + ], ]; diff --git a/config/services.php b/config/services.php index a1e56ac99..9dd7a27dd 100644 --- a/config/services.php +++ b/config/services.php @@ -1,5 +1,7 @@ [ - 'model' => App\User::class, + 'model' => User::class, 'key' => env('STRIPE_KEY'), 'secret' => env('STRIPE_SECRET'), ], diff --git a/config/snowflake.php b/config/snowflake.php index d90c6e726..f5be159d5 100644 --- a/config/snowflake.php +++ b/config/snowflake.php @@ -1,4 +1,5 @@ 1549756800000, 'worker_id' => env('SNOWFLAKE_WORKER_ID', null), diff --git a/config/telescope.php b/config/telescope.php index 07023e5f8..955c31472 100644 --- a/config/telescope.php +++ b/config/telescope.php @@ -1,133 +1,133 @@ 'telescope', - - /* - |-------------------------------------------------------------------------- - | Telescope Storage Driver - |-------------------------------------------------------------------------- - | - | This configuration options determines the storage driver that will - | be used to store Telescope's data. In addition, you may set any - | custom options as needed by the particular driver you choose. - | - */ - - 'driver' => env('TELESCOPE_DRIVER', 'database'), - - 'storage' => [ - 'database' => [ - 'connection' => env('DB_CONNECTION', 'mysql'), - ], - ], - - /* - |-------------------------------------------------------------------------- - | Telescope Master Switch - |-------------------------------------------------------------------------- - | - | This option may be used to disable all Telescope watchers regardless - | of their individual configuration, which simply provides a single - | and convenient way to enable or disable Telescope data storage. - | - */ - - 'enabled' => env('TELESCOPE_ENABLED', false), - - /* - |-------------------------------------------------------------------------- - | Telescope Route Middleware - |-------------------------------------------------------------------------- - | - | These middleware will be assigned to every Telescope route, giving you - | the chance to add your own middleware to this list or change any of - | the existing middleware. Or, you can simply stick with this list. - | - */ - - 'middleware' => [ - 'web', - Authorize::class, - ], - - /* - |-------------------------------------------------------------------------- - | Ignored Paths & Commands - |-------------------------------------------------------------------------- - | - | The following array lists the URI paths and Artisan commands that will - | not be watched by Telescope. In addition to this list, some Laravel - | commands, like migrations and queue commands, are always ignored. - | - */ - - 'ignore_paths' => [ - 'js*', - 'i*' - ], - - 'ignore_commands' => [ - // - ], - - /* - |-------------------------------------------------------------------------- - | Telescope Watchers - |-------------------------------------------------------------------------- - | - | The following array lists the "watchers" that will be registered with - | Telescope. The watchers gather the application's profile data when - | a request or task is executed. Feel free to customize this list. - | - */ - - 'watchers' => [ - Watchers\CacheWatcher::class => env('TELESCOPE_CACHE_WATCHER', true), - - Watchers\CommandWatcher::class => [ - 'enabled' => env('TELESCOPE_COMMAND_WATCHER', true), - 'ignore' => [], - ], - - Watchers\DumpWatcher::class => env('TELESCOPE_DUMP_WATCHER', true), - Watchers\EventWatcher::class => env('TELESCOPE_EVENT_WATCHER', true), - Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true), - Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true), - Watchers\LogWatcher::class => env('TELESCOPE_LOG_WATCHER', true), - Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true), - Watchers\ClientRequestWatcher::class =>true, - - Watchers\ModelWatcher::class => [ - 'enabled' => env('TELESCOPE_MODEL_WATCHER', true), - 'events' => ['eloquent.*'], - ], - - Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true), - - Watchers\QueryWatcher::class => [ - 'enabled' => env('TELESCOPE_QUERY_WATCHER', true), - 'ignore_packages' => true, - 'slow' => 100, - ], - - Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true), - - Watchers\RequestWatcher::class => [ - 'enabled' => env('TELESCOPE_REQUEST_WATCHER', true), - 'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64), - ], - - Watchers\GateWatcher::class => [ - 'enabled' => env('TELESCOPE_GATE_WATCHER', true), - 'ignore_abilities' => [], - 'ignore_packages' => true, - ], - - Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true), - ], + 'path' => 'telescope', + + /* + |-------------------------------------------------------------------------- + | Telescope Storage Driver + |-------------------------------------------------------------------------- + | + | This configuration options determines the storage driver that will + | be used to store Telescope's data. In addition, you may set any + | custom options as needed by the particular driver you choose. + | + */ + + 'driver' => env('TELESCOPE_DRIVER', 'database'), + + 'storage' => [ + 'database' => [ + 'connection' => env('DB_CONNECTION', 'mysql'), + ], + ], + + /* + |-------------------------------------------------------------------------- + | Telescope Master Switch + |-------------------------------------------------------------------------- + | + | This option may be used to disable all Telescope watchers regardless + | of their individual configuration, which simply provides a single + | and convenient way to enable or disable Telescope data storage. + | + */ + + 'enabled' => env('TELESCOPE_ENABLED', false), + + /* + |-------------------------------------------------------------------------- + | Telescope Route Middleware + |-------------------------------------------------------------------------- + | + | These middleware will be assigned to every Telescope route, giving you + | the chance to add your own middleware to this list or change any of + | the existing middleware. Or, you can simply stick with this list. + | + */ + + 'middleware' => [ + 'web', + Authorize::class, + ], + + /* + |-------------------------------------------------------------------------- + | Ignored Paths & Commands + |-------------------------------------------------------------------------- + | + | The following array lists the URI paths and Artisan commands that will + | not be watched by Telescope. In addition to this list, some Laravel + | commands, like migrations and queue commands, are always ignored. + | + */ + + 'ignore_paths' => [ + 'js*', + 'i*', + ], + + 'ignore_commands' => [ + // + ], + + /* + |-------------------------------------------------------------------------- + | Telescope Watchers + |-------------------------------------------------------------------------- + | + | The following array lists the "watchers" that will be registered with + | Telescope. The watchers gather the application's profile data when + | a request or task is executed. Feel free to customize this list. + | + */ + + 'watchers' => [ + Watchers\CacheWatcher::class => env('TELESCOPE_CACHE_WATCHER', true), + + Watchers\CommandWatcher::class => [ + 'enabled' => env('TELESCOPE_COMMAND_WATCHER', true), + 'ignore' => [], + ], + + Watchers\DumpWatcher::class => env('TELESCOPE_DUMP_WATCHER', true), + Watchers\EventWatcher::class => env('TELESCOPE_EVENT_WATCHER', true), + Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true), + Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true), + Watchers\LogWatcher::class => env('TELESCOPE_LOG_WATCHER', true), + Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true), + Watchers\ClientRequestWatcher::class => true, + + Watchers\ModelWatcher::class => [ + 'enabled' => env('TELESCOPE_MODEL_WATCHER', true), + 'events' => ['eloquent.*'], + ], + + Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true), + + Watchers\QueryWatcher::class => [ + 'enabled' => env('TELESCOPE_QUERY_WATCHER', true), + 'ignore_packages' => true, + 'slow' => 100, + ], + + Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true), + + Watchers\RequestWatcher::class => [ + 'enabled' => env('TELESCOPE_REQUEST_WATCHER', true), + 'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64), + ], + + Watchers\GateWatcher::class => [ + 'enabled' => env('TELESCOPE_GATE_WATCHER', true), + 'ignore_abilities' => [], + 'ignore_packages' => true, + ], + + Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true), + ], ]; diff --git a/config/trending.php b/config/trending.php index 42ba1509a..462bb46c1 100644 --- a/config/trending.php +++ b/config/trending.php @@ -4,6 +4,6 @@ return [ 'hashtags' => [ 'ttl' => env('PF_HASHTAGS_TRENDING_TTL', 43200), 'recency_mins' => env('PF_HASHTAGS_TRENDING_RECENCY_MINS', 20160), - 'limit' => env('PF_HASHTAGS_TRENDING_LIMIT', 20) - ] + 'limit' => env('PF_HASHTAGS_TRENDING_LIMIT', 20), + ], ]; diff --git a/config/webpush.php b/config/webpush.php index bef3e6653..8c579c010 100644 --- a/config/webpush.php +++ b/config/webpush.php @@ -1,5 +1,7 @@ \NotificationChannels\WebPush\PushSubscription::class, + 'model' => PushSubscription::class, /** * This is the name of the table that will be created by the migration and diff --git a/config/websockets.php b/config/websockets.php index 80d00df6d..a81c17b33 100644 --- a/config/websockets.php +++ b/config/websockets.php @@ -1,5 +1,20 @@ [ 'web', - \BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize::class, + Authorize::class, ], ], @@ -42,7 +57,7 @@ return [ | */ - 'app' => \BeyondCode\LaravelWebSockets\Apps\ConfigAppManager::class, + 'app' => ConfigAppManager::class, ], @@ -120,7 +135,7 @@ return [ | */ - 'channel_manager' => \BeyondCode\LaravelWebSockets\ChannelManagers\LocalChannelManager::class, + 'channel_manager' => LocalChannelManager::class, /* |-------------------------------------------------------------------------- @@ -133,7 +148,7 @@ return [ | */ - 'collector' => \BeyondCode\LaravelWebSockets\Statistics\Collectors\MemoryCollector::class, + 'collector' => MemoryCollector::class, ], @@ -151,7 +166,7 @@ return [ | */ - 'channel_manager' => \BeyondCode\LaravelWebSockets\ChannelManagers\RedisChannelManager::class, + 'channel_manager' => RedisChannelManager::class, /* |-------------------------------------------------------------------------- @@ -164,7 +179,7 @@ return [ | */ - 'collector' => \BeyondCode\LaravelWebSockets\Statistics\Collectors\RedisCollector::class, + 'collector' => RedisCollector::class, ], @@ -185,7 +200,7 @@ return [ | */ - 'store' => \BeyondCode\LaravelWebSockets\Statistics\Stores\DatabaseStore::class, + 'store' => DatabaseStore::class, /* |-------------------------------------------------------------------------- @@ -267,17 +282,17 @@ return [ 'handlers' => [ - 'websocket' => \BeyondCode\LaravelWebSockets\Server\WebSocketHandler::class, + 'websocket' => WebSocketHandler::class, - 'health' => \BeyondCode\LaravelWebSockets\Server\HealthHandler::class, + 'health' => HealthHandler::class, - 'trigger_event' => \BeyondCode\LaravelWebSockets\API\TriggerEvent::class, + 'trigger_event' => TriggerEvent::class, - 'fetch_channels' => \BeyondCode\LaravelWebSockets\API\FetchChannels::class, + 'fetch_channels' => FetchChannels::class, - 'fetch_channel' => \BeyondCode\LaravelWebSockets\API\FetchChannel::class, + 'fetch_channel' => FetchChannel::class, - 'fetch_users' => \BeyondCode\LaravelWebSockets\API\FetchUsers::class, + 'fetch_users' => FetchUsers::class, ], @@ -294,6 +309,6 @@ return [ | */ - 'promise_resolver' => \React\Promise\FulfilledPromise::class, + 'promise_resolver' => FulfilledPromise::class, ];