make(Illuminate\Contracts\Console\Kernel::class); $kernel->bootstrap(); set_time_limit(0); try { // Run the new Artisan command fallback $exitCode = $kernel->call('mailbox:clean'); $output = $kernel->output(); echo $output; } catch (\Exception $e) { echo 'Error running Artisan command: '.$e->getMessage(); }