PHP 8.3.31
Preview: Interactivity.php Size: 761 B
/home/getspomw/royalsquad.us/vendor/laravel/prompts/src/Concerns/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;
    }
}

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
3.76 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
1.53 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
611 B lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
753 B lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
3.28 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
1.40 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
761 B lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
2.92 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
525 B lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
3.91 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
2.84 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download
4.92 KB lrw-rw-rw- 2025-09-17 06:52:54
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).