File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/prompts/src/Concerns
Upload
[..]
Colors.php (3.76 KB)
Edit
Rename
Del
Erase.php (611 B)
Edit
Rename
Del
HasInfo.php (330 B)
Edit
Rename
Del
Interactivity.php (761 B)
Edit
Rename
Del
Scrolling.php (2.92 KB)
Edit
Rename
Del
Themes.php (4.87 KB)
Edit
Rename
Del
Truncation.php (502 B)
Edit
Rename
Del
TypedValue.php (6.93 KB)
Edit
Rename
Del
Edit: 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; } }
Simpan