File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Console
Upload
[..]
AboutCommand.php (12.59 KB)
Edit
Rename
Del
CliDumper.php (3.26 KB)
Edit
Rename
Del
ConfigPublishCommand.php (3.07 KB)
Edit
Rename
Del
DownCommand.php (5.56 KB)
Edit
Rename
Del
EnumMakeCommand.php (3.53 KB)
Edit
Rename
Del
InteractsWithComposerPackages.php (1.07 KB)
Edit
Rename
Del
Kernel.php (17.22 KB)
Edit
Rename
Del
LangPublishCommand.php (1.82 KB)
Edit
Rename
Del
ListenerMakeCommand.php (4.1 KB)
Edit
Rename
Del
PolicyMakeCommand.php (5.97 KB)
Edit
Rename
Del
QueuedCommand.php (1013 B)
Edit
Rename
Del
ServeCommand.php (13.24 KB)
Edit
Rename
Del
StubPublishCommand.php (5.88 KB)
Edit
Rename
Del
UpCommand.php (1.44 KB)
Edit
Rename
Del
VendorPublishCommand.php (10.8 KB)
Edit
Rename
Del
stubs/
Rename
Del
Edit: UpCommand.php
<?php namespace Illuminate\Foundation\Console; use Exception; use Illuminate\Console\Command; use Illuminate\Foundation\Events\MaintenanceModeDisabled; use Symfony\Component\Console\Attribute\AsCommand; #[AsCommand(name: 'up')] 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 (! $this->laravel->maintenanceMode()->active()) { $this->components->info('Application is already up.'); return 0; } $this->laravel->maintenanceMode()->deactivate(); if (is_file(storage_path('framework/maintenance.php'))) { unlink(storage_path('framework/maintenance.php')); } $this->laravel->get('events')->dispatch(new MaintenanceModeDisabled()); $this->components->info('Application is now live.'); } catch (Exception $e) { report($e); $this->components->error(sprintf( 'Failed to disable maintenance mode: %s.', $e->getMessage(), )); return 1; } return 0; } }
Simpan