X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/vendor/illuminate/console
home
/
gfecatvj
/
sites
/
vendor
/
illuminate
/
console
/
📁
..
📄
Application.php
(8.35 KB)
📄
Command.php
(5.07 KB)
📁
Concerns
📄
ConfirmableTrait.php
(1.21 KB)
📁
Events
📄
GeneratorCommand.php
(9 KB)
📄
LICENSE.md
(1.05 KB)
📄
OutputStyle.php
(1.48 KB)
📄
Parser.php
(4.66 KB)
📁
Scheduling
📄
composer.json
(1.37 KB)
Editing: ConfirmableTrait.php
<?php namespace Illuminate\Console; trait ConfirmableTrait { /** * Confirm before proceeding with the action. * * This method only asks for confirmation in production. * * @param string $warning * @param \Closure|bool|null $callback * @return bool */ public function confirmToProceed($warning = 'Application In Production!', $callback = null) { $callback = is_null($callback) ? $this->getDefaultConfirmCallback() : $callback; $shouldConfirm = value($callback); if ($shouldConfirm) { if ($this->hasOption('force') && $this->option('force')) { return true; } $this->alert($warning); $confirmed = $this->confirm('Do you really wish to run this command?'); if (! $confirmed) { $this->comment('Command Canceled!'); return false; } } return true; } /** * Get the default confirmation callback. * * @return \Closure */ protected function getDefaultConfirmCallback() { return function () { return $this->getLaravel()->environment() === 'production'; }; } }
Upload File
Create Folder