summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothedev <grothedev@gmail.com>2025-07-06 01:29:25 -0500
committergrothedev <grothedev@gmail.com>2025-07-06 01:29:25 -0500
commit82a3641f7cc0d30976bb8493d93948360d10a98f (patch)
tree3a61734da0d7ee1b0f5f2eae63b53eb055dab8d7
parentec41939a49b761a7db0f2e68aca407c271e08111 (diff)
messing around with a filecollection idea
-rw-r--r--resources/views/filecollection.blade.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/resources/views/filecollection.blade.php b/resources/views/filecollection.blade.php
new file mode 100644
index 0000000..f89ac02
--- /dev/null
+++ b/resources/views/filecollection.blade.php
@@ -0,0 +1,25 @@
+@extends('template')
+<?php
+ use Illuminate\Support\Facades\Storage;
+ //this page is intended to be used for specific collections of files relevant to groups of users, such as photos and videos from some event that they want to share with each other
+
+ $files = Storage::disk('public')->files('sheeshbb');
+
+ // Filter out unwanted files (like .gitignore)
+ $files = array_filter($files, function($file) {
+ // Add any file filtering logic here if needed
+ return !str_starts_with(basename($file), '.');
+ });
+
+ // Prepare file data for display
+ $fileData = [];
+ foreach ($files as $file) {
+ $fileData[] = [
+ 'name' => basename($file),
+ 'path' => $file,
+ 'url' => Storage::disk('public')->url($file),
+ 'size' => Storage::disk('public')->size($file),
+ 'last_modified' => Storage::disk('public')->lastModified($file),
+ ];
+ }
+?> \ No newline at end of file