extract pdf use case

This commit is contained in:
Yisroel Baum 2026-06-26 08:16:15 +03:00
parent b1bee8a16e
commit bc7937d2b3
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 141 additions and 26 deletions

View file

@ -0,0 +1,17 @@
<?php
namespace App\Shared\Files;
use Illuminate\Support\Facades\Storage;
class LaravelStoredFileReader implements StoredFileReader
{
public function read(string $path): ?string
{
if (!Storage::disk('public')->exists($path)) {
return null;
}
return Storage::disk('public')->get($path);
}
}

View file

@ -0,0 +1,8 @@
<?php
namespace App\Shared\Files;
interface StoredFileReader
{
public function read(string $path): ?string;
}