Skip to content

Commit

Permalink
Merge pull request #32 from investbrainapp/remove-terms-checkbox-for-…
Browse files Browse the repository at this point in the history
…self-hosted

Remove terms checkbox for self hosted
  • Loading branch information
hackerESQ authored Nov 14, 2024
2 parents 8d4e004 + 0e1c56d commit 1177886
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
10 changes: 10 additions & 0 deletions app/Providers/JetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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()))
);
}
}

/**
Expand Down

0 comments on commit 1177886

Please sign in to comment.