2026-01-16 15:36:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
refactor: settings redesign, Spanish translations, language system, strict_types
Settings pages:
- Redesign layout to match Sendkit (max-w-4xl, space-y-12, Separator sections)
- Merge Members page into Workspace settings with Table, invite Dialog, ConfirmDeleteModal
- Add workspace logo upload/delete routes and controller methods
- Translate all hardcoded strings in Workspace.vue modals
Language system:
- Drop languages table, replace language_id FK with locale string column on users
- Create config/languages.php for available languages and default locale
- Add Spanish (es) translations (13 files)
- Simplify HandleInertiaRequests, ProfileController, RegisteredUserController
Code quality:
- Add declare(strict_types=1) to all PHP files
- Fix MastodonPublisher using wrong attribute (filename -> original_filename)
- Fix HasMediaTest for new has_photo/photo_url accessors
- Fix PublishToSocialPlatformTest type error revealed by strict_types
- Remove orphaned Language model from AppServiceProvider morph map
- Update User TypeScript interface (has_photo, photo_url, locale)
- Eager load media relation on workspaces to prevent N+1
- Add 8 new tests for workspace logo upload/delete
- Update workspace settings test to assert members/invitations props
All 710 tests passing.
2026-03-30 03:20:43 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-01-16 15:36:52 +00:00
|
|
|
return [
|
|
|
|
|
|
2026-01-18 20:48:12 +00:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Self-Hosted Mode
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| When enabled, the application runs in self-hosted mode which skips
|
|
|
|
|
| payment/subscription requirements during onboarding.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'self_hosted' => env('SELF_HOSTED', true),
|
|
|
|
|
|
2026-04-01 18:27:26 +00:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Google Authentication
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Enable or disable "Login with Google" on the login and register pages.
|
|
|
|
|
| Disable this if you don't have Google OAuth credentials configured.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2026-04-14 17:16:34 +00:00
|
|
|
'google_auth_enabled' => env('GOOGLE_AUTH_ENABLED', false),
|
2026-04-01 18:27:26 +00:00
|
|
|
|
2026-01-16 15:36:52 +00:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Social Platforms
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Configure which social platforms are enabled in the application.
|
|
|
|
|
| Set to false to temporarily disable a platform (e.g., when credentials
|
|
|
|
|
| are revoked, expired, or pending approval).
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'platforms' => [
|
|
|
|
|
'linkedin' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('LINKEDIN_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
'linkedin-page' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('LINKEDIN_PAGE_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
'x' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('X_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
'tiktok' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('TIKTOK_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
'youtube' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('YOUTUBE_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
'facebook' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('FACEBOOK_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
'instagram' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('INSTAGRAM_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
2026-04-02 20:57:06 +00:00
|
|
|
'instagram-facebook' => [
|
2026-04-14 17:49:38 +00:00
|
|
|
'enabled' => env('INSTAGRAM_FACEBOOK_ENABLED', true),
|
2026-04-02 20:57:06 +00:00
|
|
|
],
|
2026-01-16 15:36:52 +00:00
|
|
|
'threads' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('THREADS_ENABLED', true),
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
2026-01-18 16:10:01 +00:00
|
|
|
'pinterest' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('PINTEREST_ENABLED', true),
|
2026-01-18 16:10:01 +00:00
|
|
|
],
|
2026-01-18 16:33:54 +00:00
|
|
|
'bluesky' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('BLUESKY_ENABLED', true),
|
2026-01-18 16:33:54 +00:00
|
|
|
],
|
2026-01-18 16:59:43 +00:00
|
|
|
'mastodon' => [
|
2026-04-14 17:19:51 +00:00
|
|
|
'enabled' => env('MASTODON_ENABLED', true),
|
2026-01-18 16:59:43 +00:00
|
|
|
],
|
2026-01-16 15:36:52 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
];
|