![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/syn.corals.io/vendor/laravel/framework/src/Illuminate/Foundation/Console/ |
<?php namespace Illuminate\Foundation\Console; use Exception; use Illuminate\Console\Command; use Illuminate\Foundation\Events\MaintenanceModeDisabled; class UpCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'up'; /** * The console command description. * * @var string */ protected $description = 'Bring the application out of maintenance mode'; /** * Execute the console command. * * @return int */ public function handle() { try { if (! is_file(storage_path('framework/down'))) { $this->comment('Application is already up.'); return 0; } unlink(storage_path('framework/down')); if (is_file(storage_path('framework/maintenance.php'))) { unlink(storage_path('framework/maintenance.php')); } $this->laravel->get('events')->dispatch(MaintenanceModeDisabled::class); $this->info('Application is now live.'); } catch (Exception $e) { $this->error('Failed to disable maintenance mode.'); $this->error($e->getMessage()); return 1; } } }