#!/usr/bin/env php 📋 Available Events: [1] Mohamed Abdo New Years Celebration 2025 (slug: mohamed-abdo-new-years-celebration-2025) [2] Booking Test (slug: booking-test) [3] test event (slug: test-event) [4] Mo-Test (slug: mo-test) Enter event ID or slug (or leave blank for all events): Undefined constant "STDIN" (500 Internal Server Error)

Symfony Exception

Error

HTTP 500 Internal Server Error

Undefined constant "STDIN"

Exception

Error

  1.     echo "📋 Available Events:\n";
  2.     Event::take(10)->get()->each(function($e) {
  3.         echo "  [{$e->id}{$e->name} (slug: {$e->slug})\n";
  4.     });
  5.     echo "\nEnter event ID or slug (or leave blank for all events): ";
  6.     $input trim(fgets(STDIN));
  7.     if ($input) {
  8.         if (is_numeric($input)) {
  9.             $event Event::find($input);
  10.         } else {

Stack Trace

Error
Error:
Undefined constant "STDIN"

  at /home/globalgala/public_html/2026_backend_dev/scripts/generate-access-codes.php:76