File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/pail/src
Upload
[..]
Console/
Rename
Del
Contracts/
Rename
Del
Files.php (520 B)
Edit
Rename
Del
Guards/
Rename
Del
Handler.php (4.28 KB)
Edit
Rename
Del
LoggerFactory.php (670 B)
Edit
Rename
Del
Options.php (2.05 KB)
Edit
Rename
Del
PailServiceProvider.php (2.39 KB)
Edit
Rename
Del
Printers/
Rename
Del
ValueObjects/
Rename
Del
Edit: 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 Collection<int, File> */ public function all(): Collection { $files = glob($this->path.'/*.pail') ?: []; return collect($files) ->map(fn (string $file) => new File($file)); } }
Simpan