spatie/laravel-web-tinker
Adds Laravel’s Tinker REPL to your browser via a protected route, making it easy to run and tweak code without the terminal. Includes light/dark UI and simple install/publish commands. For local/dev only—can execute arbitrary code.
Pros:
/tinker) without modifying core Laravel logic. Minimal footprint on application architecture.Cons:
web-tinker:install.composer require spatie/laravel-web-tinker --dev + php artisan web-tinker:install.config/web-tinker.php for path, theme, middleware, and auth.viewWebTinker gate definition (e.g., in AuthServiceProvider). Ideal for role-based access control (RBAC).enabled config defaults to APP_ENV === 'local'.StartSession and EncryptCookies by default.PrefixDateTime modifier).throttle:60).DB::table()->cursor()).APP_ENV? (e.g., feature flags, network policies).Artisan::call('migrate')) that should be explicitly allowed/blocked?--dev dependency).viewWebTinker gate).php artisan tinker with SSH).config_file in web-tinker.php.Artisan::call() in Tinker.signed middleware for CSRF protection).StartSession middleware doesn’t interfere with existing auth (e.g., Sanctum)./tinker path may clash with custom routes (configurable via path).viewWebTinker gate in AuthServiceProvider.composer require spatie/laravel-web-tinker --dev.php artisan web-tinker:install + php artisan vendor:publish --tag=web-tinker-config.theme, path, and middleware in config/web-tinker.php.php artisan tinker vs. /tinker access).laravel.log)./tinker?code=User::all()).How can I help you explore Laravel packages today?