%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/duwit.rezakurnia.com/rechive-hub/vendor/laravel/pail/src/
Upload File :
Create Path :
Current File : /home2/rezakur1/duwit.rezakurnia.com/rechive-hub/vendor/laravel/pail/src/Files.php

<?php

namespace Laravel\Pail;

use Illuminate\Support\Collection;

class Files
{
    /**
     * Creates a new instance of the files.
     */
    public function __construct(
        protected string $path,
    ) {
        //
    }

    /**
     * Returns the list of files.
     *
     * @return \Illuminate\Support\Collection<int, File>
     */
    public function all(): Collection
    {
        $files = glob($this->path.'/*.pail') ?: [];

        return collect($files)
            ->map(fn (string $file) => new File($file));
    }
}

Zerion Mini Shell 1.0