sourceDisk = Storage::disk('source'); $this->targetDisk = Storage::disk('build_local'); } /** * Get all the pages from the source directory * * @return Collection */ public function getPages(): Collection { $files = $this->sourceDisk->files(recursive: true); foreach (self::IGNORED_DIRECTORIES as $ignore) { $files = array_filter($files, fn($path) => !str_starts_with($path, $ignore)); } $pages = collect(); // Set up a structure foreach ($files as $f) { $pages->push(new Page($f)); } return $pages; } public function slugFromFilename(string $filename): string { return Str::of(basename($filename))->remove(".md")->remove(".blade.php")->slug()->toString(); } public function getOutputPath(string $filename): string {} /** * Parse all content collections and sub collections. * Return a collection of ContentCollection objects * with the correct data populated based on front * matter and config. * * @return Collection */ // public function collections(): Collection {} }