61 lines
1.7 KiB
PHP
61 lines
1.7 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\LaravelBackend\Traits\Models\HasUwilImages;
|
|
use Uwil\LaravelI18n\Traits\Models\HasTranslations;
|
|
|
|
/**
|
|
* @property integer $id Id 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 HasFactory;
|
|
use HasModelNaming;
|
|
use HasTranslations;
|
|
use HasUwilImages;
|
|
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',
|
|
];
|
|
}
|