ldc-supportweb/app/Models/InvoicePackage.php
2026-05-26 12:15:12 +02:00

60 lines
1.8 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Uwil\LaravelActivityLogs\Traits\HasActivityLog;
use Uwil\LaravelBackend\Traits\Models\HasCache;
use Uwil\LaravelBackend\Traits\Models\HasModelNaming;
use Uwil\LaravelI18n\Traits\Models\HasTranslations;
/**
* @property integer $id Primary key of the invoice package.
* @property string $name Name of the invoice package.
* @property string $amount Amount of the invoice package.
* @property string $published Published status of the invoice package.
* @property-read \Illuminate\Support\Carbon $created_at Date the invoice package password was created.
* @property-read \Illuminate\Support\Carbon $updated_at Date the invoice package password was updated.
* @property-read \Illuminate\Support\Carbon $deleted_at Date the invoice package password was deleted.
*/
class InvoicePackage extends Model
{
use HasActivityLog;
use HasCache;
/** @use \Illuminate\Database\Eloquent\Factories\HasFactory<\Database\Factories\InvoicePackageFactory> */
use HasFactory;
use HasModelNaming;
use HasTranslations;
use SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'amount',
'published',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'published' => 'boolean',
];
/**
* The translatable columns.
*
* @var list<string>
*/
public $translatable = [
'name',
];
}