From fc5cb67fe311a210684900a212db572fd7168e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Wed, 7 Jan 2026 11:06:54 +0100 Subject: [PATCH] feature: enable cashflow for everyone --- app/Console/Commands/FeatureDisableCommand.php | 2 +- app/Console/Commands/FeatureEnableCommand.php | 2 +- app/Features/CashflowFeature.php | 13 ------------- app/Http/Middleware/HandleInertiaRequests.php | 4 +--- 4 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 app/Features/CashflowFeature.php diff --git a/app/Console/Commands/FeatureDisableCommand.php b/app/Console/Commands/FeatureDisableCommand.php index 48838993..96779da0 100644 --- a/app/Console/Commands/FeatureDisableCommand.php +++ b/app/Console/Commands/FeatureDisableCommand.php @@ -11,7 +11,7 @@ class FeatureDisableCommand extends Command { use ResolvesFeatures; - protected $signature = 'feature:disable {feature : The feature class name (e.g., CashflowFeature)} {target : User email or "all" for everyone}'; + protected $signature = 'feature:disable {feature : The feature class name} {target : User email or "all" for everyone}'; protected $description = 'Disable a feature for a specific user or all users'; diff --git a/app/Console/Commands/FeatureEnableCommand.php b/app/Console/Commands/FeatureEnableCommand.php index 3f5459cb..3db522ff 100644 --- a/app/Console/Commands/FeatureEnableCommand.php +++ b/app/Console/Commands/FeatureEnableCommand.php @@ -11,7 +11,7 @@ class FeatureEnableCommand extends Command { use ResolvesFeatures; - protected $signature = 'feature:enable {feature : The feature class name (e.g., CashflowFeature)} {target : User email or "all" for everyone}'; + protected $signature = 'feature:enable {feature : The feature class name} {target : User email or "all" for everyone}'; protected $description = 'Enable a feature for a specific user or all users'; diff --git a/app/Features/CashflowFeature.php b/app/Features/CashflowFeature.php deleted file mode 100644 index 99eade72..00000000 --- a/app/Features/CashflowFeature.php +++ /dev/null @@ -1,13 +0,0 @@ - ! $request->hasCookie('sidebar_state') || $request->cookie('sidebar_state') === 'true', 'features' => [ - 'cashflow' => $user ? Feature::for($user)->active(CashflowFeature::class) : false, + 'cashflow' => true, ], ]; }