update project

This commit is contained in:
root
2026-05-30 01:11:35 -04:00
parent 3a0628ecc7
commit 2225f6bc72
9743 changed files with 1122482 additions and 59 deletions
+30
View File
@@ -0,0 +1,30 @@
<?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));
}
}