mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-11 23:37:22 +00:00
Merge pull request #578 from mchev/updates
Laravel 13 upgrade, security updates and fixes
This commit is contained in:
@@ -3,10 +3,12 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App;
|
||||
use App\Facades\Hashids;
|
||||
use App\Facades\PDF;
|
||||
use App\Mail\SendInvoiceMail;
|
||||
use App\Services\SerialNumberFormatter;
|
||||
use App\Space\PdfTemplateUtils;
|
||||
use App\Support\PdfHtmlSanitizer;
|
||||
use App\Traits\GeneratesPdfTrait;
|
||||
use App\Traits\HasCustomFieldsTrait;
|
||||
use Carbon\Carbon;
|
||||
@@ -18,7 +20,6 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
use Nwidart\Modules\Facades\Module;
|
||||
use Spatie\MediaLibrary\HasMedia;
|
||||
use Spatie\MediaLibrary\InteractsWithMedia;
|
||||
use Vinkla\Hashids\Facades\Hashids;
|
||||
|
||||
class Invoice extends Model implements HasMedia
|
||||
{
|
||||
@@ -85,7 +86,7 @@ class Invoice extends Model implements HasMedia
|
||||
|
||||
public function items(): HasMany
|
||||
{
|
||||
return $this->hasMany(\App\Models\InvoiceItem::class);
|
||||
return $this->hasMany(InvoiceItem::class);
|
||||
}
|
||||
|
||||
public function taxes(): HasMany
|
||||
@@ -656,7 +657,7 @@ class Invoice extends Model implements HasMedia
|
||||
|
||||
public function getNotes()
|
||||
{
|
||||
return $this->getFormattedString($this->notes);
|
||||
return PdfHtmlSanitizer::sanitize($this->getFormattedString($this->notes));
|
||||
}
|
||||
|
||||
public function getEmailString($body)
|
||||
|
||||
Reference in New Issue
Block a user