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}" 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())) + ); + } } /**