From eefe237dff4311ebfca4284c0b2b6b59318e420b Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Thu, 14 Nov 2024 02:10:21 -0600 Subject: [PATCH 1/2] feat: allow app debug on default install --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 7309216..c7ebf61 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ APP_NAME=Investbrain APP_ENV=production APP_KEY= -APP_DEBUG=false +APP_DEBUG=true APP_TIMEZONE=UTC APP_PORT=8000 APP_URL="http://localhost:${APP_PORT}" From 0e1c56dd18abd1c4bb18c47829e0a5b611044c47 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Thu, 14 Nov 2024 02:23:22 -0600 Subject: [PATCH 2/2] feat: do not show terms when self hosting --- app/Providers/JetstreamServiceProvider.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Providers/JetstreamServiceProvider.php b/app/Providers/JetstreamServiceProvider.php index 7fd2519..f931bf3 100644 --- a/app/Providers/JetstreamServiceProvider.php +++ b/app/Providers/JetstreamServiceProvider.php @@ -2,7 +2,10 @@ namespace App\Providers; +use Illuminate\Support\Arr; +use Laravel\Jetstream\Features; use App\Actions\Jetstream\DeleteUser; +use Illuminate\Support\Facades\Config; use Illuminate\Support\ServiceProvider; use Laravel\Jetstream\Jetstream; @@ -26,6 +29,13 @@ public function boot(): void Jetstream::deleteUsersUsing(DeleteUser::class); + if ( config('investbrain.self_hosted', false) ) { + + Config::set( + 'jetstream.features', + array_keys(Arr::except(array_values(config('jetstream.features')), Features::termsAndPrivacyPolicy())) + ); + } } /**