Invoices can be uploaded

This commit is contained in:
th.guenther committed 2026-02-11 15:40:06 +01:00
1 parent bccfc11687
commit ee7fc637f1
47 files changed
+1751 -67

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Repositories;
use App\Models\PageText;
class PageTextRepository {
public function getPageText(string $name) : string {
$name = strtoupper($name);
$pageText = PageText::where(['name' => $name])->first();
if (null === $pageText) {
PageText::create(['name' => $name, 'content' => '']);
return strtoupper($name);
}
return $pageText->content;
}
}