Initial commit

This commit is contained in:
jeremy bayse
2026-03-20 08:25:58 +01:00
commit a55a33ae2a
143 changed files with 19599 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Document;
use Illuminate\Support\Facades\Storage;
class DocumentController extends Controller
{
public function show(Document $document)
{
// Permission check is already handled by middleware in the route
if (!Storage::disk('local')->exists($document->file_path)) {
abort(404, 'File not found');
}
return Storage::disk('local')->response($document->file_path);
}
}