Small fixes
This commit is contained in:
@@ -33,7 +33,7 @@ class UploadFileProvider {
|
|||||||
|
|
||||||
$invoiceFile = new InvoiceFile();
|
$invoiceFile = new InvoiceFile();
|
||||||
$invoiceFile->filename = $filename;
|
$invoiceFile->filename = $filename;
|
||||||
$invoiceFile->path = $path;
|
$invoiceFile->fullPath = $path;
|
||||||
return $invoiceFile;
|
return $invoiceFile;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class PageTextRepository {
|
|||||||
$name = strtoupper($name);
|
$name = strtoupper($name);
|
||||||
$pageText = PageText::where(['name' => $name])->first();
|
$pageText = PageText::where(['name' => $name])->first();
|
||||||
if (null === $pageText) {
|
if (null === $pageText) {
|
||||||
PageText::create(['name' => $name, 'content' => '']);
|
PageText::create(['name' => $name, 'content' => $name]);
|
||||||
|
|
||||||
|
|
||||||
return strtoupper($name);
|
return strtoupper($name);
|
||||||
|
|||||||
Reference in New Issue
Block a user