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