X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/prompts/src/Concerns
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
prompts
/
src
/
Concerns
/
📁
..
📄
Colors.php
(3.76 KB)
📄
Cursor.php
(1.53 KB)
📄
Erase.php
(611 B)
📄
Events.php
(753 B)
📄
FakesInputOutput.php
(2.66 KB)
📄
Fallback.php
(1.4 KB)
📄
Interactivity.php
(761 B)
📄
Scrolling.php
(2.92 KB)
📄
Termwind.php
(525 B)
📄
Themes.php
(3.78 KB)
📄
Truncation.php
(2.84 KB)
📄
TypedValue.php
(4.87 KB)
Editing: Interactivity.php
<?php namespace Laravel\Prompts\Concerns; use Laravel\Prompts\Exceptions\NonInteractiveValidationException; trait Interactivity { /** * Whether to render the prompt interactively. */ protected static bool $interactive; /** * Set interactive mode. */ public static function interactive(bool $interactive = true): void { static::$interactive = $interactive; } /** * Return the default value if it passes validation. */ protected function default(): mixed { $default = $this->value(); $this->validate($default); if ($this->state === 'error') { throw new NonInteractiveValidationException($this->error); } return $default; } }
Upload File
Create Folder