Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
chore: remove unused Pennant package and dead user-timezone handling
Paulo Castellano3e15144399b6
diff --git a/.claude/skills/pennant-development/SKILL.md b/.claude/skills/pennant-development/SKILL.mddeleted file mode 100644index 85283f5f1..000000000--- a/.claude/skills/pennant-development/SKILL.md+++ /dev/null@@ -1,69 +0,0 @@-----name: pennant-development-description: "Use when working with Laravel Pennant the official Laravel feature flag package. Trigger whenever the query mentions Pennant by name or involves feature flags or feature toggles in a Laravel project. Tasks include defining feature flags checking whether features are active creating class based features in `app/Features` using Blade `@feature` directives scoping flags to users or teams building custom Pennant storage drivers protecting routes with feature flags testing feature flags with Pest or PHPUnit and implementing A B testing or gradual rollouts with feature flags. Do not trigger for generic Laravel configuration authorization policies authentication or non Pennant feature management systems."-license: MIT-metadata:- author: laravel------# Pennant Features--## Documentation--Use `search-docs` for detailed Pennant patterns and documentation.--## Basic Usage--### Defining Features--<!-- Defining Features -->-```php-use Laravel\Pennant\Feature;--Feature::define('new-dashboard', function (User $user) {- return $user->isAdmin();-});-```--### Checking Features--<!-- Checking Features -->-```php-if (Feature::active('new-dashboard')) {- // Feature is active-}--// With scope-if (Feature::for($user)->active('new-dashboard')) {- // Feature is active for this user-}-```--### Blade Directive--<!-- Blade Directive -->-```blade-@feature('new-dashboard')- <x-new-dashboard />-@else- <x-old-dashboard />-@endfeature-```--### Activating / Deactivating--<!-- Activating Features -->-```php-Feature::activate('new-dashboard');-Feature::for($user)->activate('new-dashboard');-```--## Verification--1. Check feature flag is defined-2. Test with different scopes/users--## Common Pitfalls--- Forgetting to scope features for specific users/entities-- Not following existing naming conventions\ No newline at end of filediff --git a/CLAUDE.md b/CLAUDE.mdindex fbf0ae446..db1556cd7 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -19,7 +19,6 @@ This application is a Laravel application and its main Laravel ecosystems packag- laravel/mcp (MCP) - v0- laravel/nightwatch (NIGHTWATCH) - v1- laravel/passport (PASSPORT) - v13-- laravel/pennant (PENNANT) - v1- laravel/prompts (PROMPTS) - v0- laravel/reverb (REVERB) - v1- laravel/socialite (SOCIALITE) - v5diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.phpindex dd13f0f51..a22c77e80 100644--- a/app/Http/Controllers/Auth/RegisteredUserController.php+++ b/app/Http/Controllers/Auth/RegisteredUserController.php@@ -8,7 +8,6 @@ use App\Actions\User\CreateUser;use App\Http\Controllers\Auth\Concerns\PreservesUtmParameters;use App\Http\Controllers\Controller;use App\Models\User;-use App\Rules\Timezone;use Illuminate\Auth\Events\Registered;use Illuminate\Http\RedirectResponse;use Illuminate\Http\Request;@@ -37,7 +36,6 @@ class RegisteredUserController extends Controller'name' => ['required', 'string', 'max:255'],'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:'.User::class],'password' => ['required', Rules\Password::defaults()],- 'timezone' => ['nullable', 'string', new Timezone],]);$isInviteRegistration = str_contains($request->input('redirect', ''), '/invites/');@@ -48,7 +46,6 @@ class RegisteredUserController extends Controller'name' => $request->name,'email' => $request->email,'password' => $request->password,- 'timezone' => $request->input('timezone', 'UTC'),'is_invite' => $isInviteRegistration,'registration_ip' => $request->ip(),], $utmParameters);diff --git a/app/Rules/Timezone.php b/app/Rules/Timezone.phpdeleted file mode 100644index 2432498fe..000000000--- a/app/Rules/Timezone.php+++ /dev/null@@ -1,24 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Rules;--use Closure;-use Illuminate\Contracts\Validation\ValidationRule;-use Illuminate\Translation\PotentiallyTranslatedString;--class Timezone implements ValidationRule-{- /**- * @param Closure(string, ?string=): PotentiallyTranslatedString $fail- */- public function validate(string $attribute, mixed $value, Closure $fail): void- {- try {- new \DateTimeZone($value);- } catch (\Exception) {- $fail('The :attribute must be a valid timezone.');- }- }-}diff --git a/boost.json b/boost.jsonindex a4616e75a..0703bb2cd 100644--- a/boost.json+++ b/boost.json@@ -15,7 +15,6 @@"mcp-development","configure-nightwatch","passport-development",- "pennant-development","socialite-development","wayfinder-development","pest-testing",diff --git a/composer.json b/composer.jsonindex 644ed3efe..5768bda83 100644--- a/composer.json+++ b/composer.json@@ -45,7 +45,6 @@"laravel/mcp": "^0.6.4","laravel/nightwatch": "^1.22","laravel/passport": "^13.7",- "laravel/pennant": "^1.23","laravel/reverb": "^1.0","laravel/socialite": "^5.24","laravel/tinker": "^3.0",diff --git a/composer.lock b/composer.lockindex a7d03236b..e556996b2 100644--- a/composer.lock+++ b/composer.lock@@ -4,7 +4,7 @@"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies","This file is @generated automatically"],- "content-hash": "19849eb01cb4d8f93733666b53444c5a",+ "content-hash": "f2f0d0ee195cb8181f595e304a6cfce0","packages": [{"name": "aws/aws-crt-php",@@ -2682,82 +2682,6 @@},"time": "2026-04-16T14:00:29+00:00"},- {- "name": "laravel/pennant",- "version": "v1.23.0",- "source": {- "type": "git",- "url": "https://github.com/laravel/pennant.git",- "reference": "d3d531d0ba640f9d0bd3580990fb205244e956ca"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/laravel/pennant/zipball/d3d531d0ba640f9d0bd3580990fb205244e956ca",- "reference": "d3d531d0ba640f9d0bd3580990fb205244e956ca",- "shasum": ""- },- "require": {- "illuminate/console": "^10.0|^11.0|^12.0|^13.0",- "illuminate/container": "^10.0|^11.0|^12.0|^13.0",- "illuminate/contracts": "^10.0|^11.0|^12.0|^13.0",- "illuminate/database": "^10.0|^11.0|^12.0|^13.0",- "illuminate/queue": "^10.0|^11.0|^12.0|^13.0",- "illuminate/support": "^10.0|^11.0|^12.0|^13.0",- "php": "^8.1",- "symfony/console": "^6.0|^7.0|^8.0",- "symfony/finder": "^6.0|^7.0|^8.0"- },- "require-dev": {- "laravel/octane": "^1.4|^2.0",- "orchestra/testbench": "^8.36|^9.15|^10.8|^11.0",- "phpstan/phpstan": "^1.10"- },- "type": "library",- "extra": {- "laravel": {- "aliases": {- "Feature": "Laravel\\Pennant\\Feature"- },- "providers": [- "Laravel\\Pennant\\PennantServiceProvider"- ]- },- "branch-alias": {- "dev-master": "1.x-dev"- }- },- "autoload": {- "files": [- "src/helpers.php"- ],- "psr-4": {- "Laravel\\Pennant\\": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Taylor Otwell",- "email": "[email protected]"- }- ],- "description": "A simple, lightweight library for managing feature flags.",- "homepage": "https://github.com/laravel/pennant",- "keywords": [- "feature",- "flags",- "laravel",- "pennant"- ],- "support": {- "issues": "https://github.com/laravel/pennant/issues",- "source": "https://github.com/laravel/pennant"- },- "time": "2026-03-19T02:27:39+00:00"- },{"name": "laravel/prompts","version": "v0.3.18",diff --git a/database/migrations/2026_04_14_213055_create_features_table.php b/database/migrations/2026_06_22_162523_drop_features_table.phpsimilarity index 86%rename from database/migrations/2026_04_14_213055_create_features_table.phprename to database/migrations/2026_06_22_162523_drop_features_table.phpindex a64eea2f5..f93f11ba9 100644--- a/database/migrations/2026_04_14_213055_create_features_table.php+++ b/database/migrations/2026_06_22_162523_drop_features_table.php@@ -1,15 +1,23 @@<?php+use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-use Laravel\Pennant\Migrations\PennantMigration;-return new class extends PennantMigration+return new class extends Migration{/*** Run the migrations.*/public function up(): void+ {+ Schema::dropIfExists('features');+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void{Schema::create('features', function (Blueprint $table) {$table->id();@@ -21,12 +29,4 @@ return new class extends PennantMigration$table->unique(['name', 'scope']);});}-- /**- * Reverse the migrations.- */- public function down(): void- {- Schema::dropIfExists('features');- }};diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.phpindex 68c7ca28d..0edd6a016 100644--- a/database/seeders/UserSeeder.php+++ b/database/seeders/UserSeeder.php@@ -23,7 +23,6 @@ class UserSeeder extends Seeder'email' => '[email protected]','password' => 'password','email_verified_at' => now(),- 'timezone' => 'UTC',]);$this->command->info('Admin account created — change the password on first login:');diff --git a/resources/js/pages/auth/Register.vue b/resources/js/pages/auth/Register.vueindex fe57097be..30c30dcf7 100644--- a/resources/js/pages/auth/Register.vue+++ b/resources/js/pages/auth/Register.vue@@ -28,8 +28,6 @@ defineProps<{const showPassword = ref(false);const showEmailForm = ref(false);-const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;-const page = usePage();const isSelfHosted = computed(() => Boolean(page.props.selfHosted));const hasSocial = computed(@@ -74,7 +72,6 @@ const emailFormVisible = computed(() => !hasSocial.value || showEmailForm.value)class="flex flex-col gap-6"><input v-if="redirect" type="hidden" name="redirect" :value="redirect" />- <input type="hidden" name="timezone" :value="timezone" /><divv-if="hasSocial && showEmailForm"diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.phpindex 39aae50d5..0c36aa606 100644--- a/tests/Feature/Auth/RegistrationTest.php+++ b/tests/Feature/Auth/RegistrationTest.php@@ -40,20 +40,6 @@ test('new users get a default workspace on registration', function () {expect($user->current_workspace_id)->toBe($user->workspaces()->first()->id);});-test('new users can register with a timezone preference', function () {- $this->post(route('register.store'), [- 'name' => 'Test User',- 'email' => '[email protected]',- 'password' => 'Password123!',- 'timezone' => 'America/Sao_Paulo',- ]);-- $user = User::where('email', '[email protected]')->first();-- expect($user)->not->toBeNull();- expect($user->workspaces()->count())->toBe(1);-});-test('new users do not have verified email by default', function () {$this->post(route('register.store'), ['name' => 'Test User',@@ -66,42 +52,6 @@ test('new users do not have verified email by default', function () {expect($user->email_verified_at)->toBeNull();});-test('new users can register with deprecated timezone Asia/Calcutta', function () {- $response = $this->post(route('register.store'), [- 'name' => 'Test User',- 'email' => '[email protected]',- 'password' => 'Password123!',- 'timezone' => 'Asia/Calcutta',- ]);-- $response->assertSessionHasNoErrors();- expect(User::where('email', '[email protected]')->exists())->toBeTrue();-});--test('new users can register with deprecated timezone US/Eastern', function () {- $response = $this->post(route('register.store'), [- 'name' => 'Test User',- 'email' => '[email protected]',- 'password' => 'Password123!',- 'timezone' => 'US/Eastern',- ]);-- $response->assertSessionHasNoErrors();- expect(User::where('email', '[email protected]')->exists())->toBeTrue();-});--test('new users cannot register with invalid timezone', function () {- $response = $this->post(route('register.store'), [- 'name' => 'Test User',- 'email' => '[email protected]',- 'password' => 'Password123!',- 'timezone' => 'Invalid/Timezone',- ]);-- $response->assertSessionHasErrors('timezone');- expect(User::where('email', '[email protected]')->exists())->toBeFalse();-});-test('new users registering via invite have verified email automatically', function () {$this->post(route('register.store'), ['name' => 'Test User',diff --git a/tests/Feature/Auth/SignupRequiresCheckoutTest.php b/tests/Feature/Auth/SignupRequiresCheckoutTest.phpindex fa70bed68..c89bbc734 100644--- a/tests/Feature/Auth/SignupRequiresCheckoutTest.php+++ b/tests/Feature/Auth/SignupRequiresCheckoutTest.php@@ -17,7 +17,6 @@ test('new signup does not create a trial before checkout', function () {'name' => 'Alice','email' => '[email protected]','password' => 'password123',- 'timezone' => 'UTC','registration_ip' => '127.0.0.1',]);@@ -33,7 +32,6 @@ test('new signup creates generic trial when card is not required', function () {'name' => 'Alice','email' => '[email protected]','password' => 'password123',- 'timezone' => 'UTC','registration_ip' => '127.0.0.1',]);diff --git a/tests/Feature/Middleware/TrialMiddlewareAccessTest.php b/tests/Feature/Middleware/TrialMiddlewareAccessTest.phpindex 5ac229c03..5969a0eda 100644--- a/tests/Feature/Middleware/TrialMiddlewareAccessTest.php+++ b/tests/Feature/Middleware/TrialMiddlewareAccessTest.php@@ -20,7 +20,6 @@ test('user without subscription is redirected to subscribe', function () {'name' => 'Alice','email' => '[email protected]','password' => 'password123',- 'timezone' => 'UTC','registration_ip' => '127.0.0.1',]);@@ -41,7 +40,6 @@ test('user with active subscription can access the app', function () {'name' => 'Alice','email' => '[email protected]','password' => 'password123',- 'timezone' => 'UTC','registration_ip' => '127.0.0.1',]);@@ -127,7 +125,6 @@ test('user on generic trial can access the app when card is not required', funct'name' => 'Alice','email' => '[email protected]','password' => 'password123',- 'timezone' => 'UTC','registration_ip' => '127.0.0.1',]);diff --git a/tests/Unit/Rules/TimezoneRuleTest.php b/tests/Unit/Rules/TimezoneRuleTest.phpdeleted file mode 100644index 98c77a07d..000000000--- a/tests/Unit/Rules/TimezoneRuleTest.php+++ /dev/null@@ -1,48 +0,0 @@-<?php--declare(strict_types=1);--use App\Rules\Timezone;-use Illuminate\Support\Facades\Validator;--test('accepts valid timezone', function () {- $validator = Validator::make(['tz' => 'America/Sao_Paulo'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeTrue();-});--test('accepts UTC', function () {- $validator = Validator::make(['tz' => 'UTC'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeTrue();-});--test('accepts deprecated timezone Asia/Calcutta', function () {- $validator = Validator::make(['tz' => 'Asia/Calcutta'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeTrue();-});--test('accepts deprecated timezone US/Eastern', function () {- $validator = Validator::make(['tz' => 'US/Eastern'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeTrue();-});--test('rejects invalid timezone', function () {- $validator = Validator::make(['tz' => 'Invalid/Timezone'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeFalse();-});--test('rejects random string', function () {- $validator = Validator::make(['tz' => 'blabla'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeFalse();-});--test('accepts Europe/London', function () {- $validator = Validator::make(['tz' => 'Europe/London'], ['tz' => new Timezone]);-- expect($validator->passes())->toBeTrue();-});